f1module Cisco-IOS-XR-um-l2vpn-cfg {f1module Cisco-IOS-XR-um-l2vpn-cfg {
2  namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-um-l2vpn-cfg";2  namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-um-l2vpn-cfg";
3  prefix um-l2vpn-cfg;3  prefix um-l2vpn-cfg;
44
5  import Cisco-IOS-XR-types {5  import Cisco-IOS-XR-types {
6    prefix xr;6    prefix xr;
7  }7  }
8  import ietf-inet-types {8  import ietf-inet-types {
9    prefix inet;9    prefix inet;
10  }10  }
11  import ietf-yang-types {11  import ietf-yang-types {
12    prefix yang;12    prefix yang;
13  }13  }
14  import Cisco-IOS-XR-um-interface-cfg {14  import Cisco-IOS-XR-um-interface-cfg {
15    prefix a1;15    prefix a1;
16  }16  }
17  import Cisco-IOS-XR-um-snmp-server-cfg {17  import Cisco-IOS-XR-um-snmp-server-cfg {
18    prefix a2;18    prefix a2;
19  }19  }
20  import Cisco-IOS-XR-um-vrf-cfg {20  import Cisco-IOS-XR-um-vrf-cfg {
21    prefix a3;21    prefix a3;
22  }22  }
23  import tailf-common {23  import tailf-common {
24    prefix tailf;24    prefix tailf;
25  }25  }
26  import cisco-semver {26  import cisco-semver {
27    prefix semver;27    prefix semver;
28  }28  }
2929
30  organization30  organization
31    "Cisco Systems, Inc.";31    "Cisco Systems, Inc.";
32  contact32  contact
33    "Cisco Systems, Inc.33    "Cisco Systems, Inc.
34     Customer Service34     Customer Service
35     35     
36     Postal: 170 West Tasman Drive36     Postal: 170 West Tasman Drive
37     San Jose, CA 9513437     San Jose, CA 95134
38     38     
39     Tel: +1 800 553-NETS39     Tel: +1 800 553-NETS
40     40     
41     E-mail: cs-yang@cisco.com";41     E-mail: cs-yang@cisco.com";
42  description42  description
43    "This module contains a collection of YANG definitions43    "This module contains a collection of YANG definitions
44     for Cisco IOS-XR l2vpn package configuration.44     for Cisco IOS-XR l2vpn package configuration.
45     45     
46     This YANG module augments the46     This YANG module augments the
47     modules with configuration data.47     modules with configuration data.
48     48     
n49     Copyright (c) 2021-2023 by Cisco Systems, Inc.n49     Copyright (c) 2021-2022 by Cisco Systems, Inc.
50     All rights reserved.";50     All rights reserved.";
5151
n52  revision 2022-12-14 {n
53    description
54      "Added wide-function config support for per EVI and global locator
55       2022-08-15
56         Added support for uSID WLIB allocation space
57       2022-08-03
58         Changed esi nodes bytes01, bytes23, bytes45, bytes67, bytes89 under
59       evpn/virtual/ethernet-segment/identifier/ to 9-octet string
60       2022-07-11
61         Added missing description statement to nodes
62       2022-07-06
63         Changed esi nodes bytes01, bytes23, bytes45, bytes67, bytes89 under
64       ethernet-segment/identifier to 9-octet string
65       2022-04-14
66         Removed mmrp-flood-optimization and unknown-unicast non-configurable nodes
67       2022-03-10
68         Removed some non-configurable nodes from the L2VPN/EVPN Yang UM
69       2022-03-08
70         Added list interface under vlan-switch bridge-domain
71       2021-11-17
72         Added container segment-routing-srv6-evis under bridge-domains";
73    semver:module-version "3.0.0";
74  }
75  revision 2021-10-11 {52  revision 2021-10-11 {
76    description53    description
77      "Re-adjusted mac node under vlan-switch hierarchy54      "Re-adjusted mac node under vlan-switch hierarchy
78       2021-07-2955       2021-07-29
n79          Re-adjusted load-balancing and ipv4 under encapsulation/mpls rather than redundancyn56         Re-adjusted load-balancing and ipv4 under encapsulation/mpls rather than redundancy
80       2021-07-2257       2021-07-22
n81          Added presence statement for container group under containern58         Added presence statement for container group under container
82        split-horizon59       split-horizon
83       2021-07-2160       2021-07-21
n84          aging, learning, withdraw, secure, port-down, static-addresses and access-pw nodes are moved up 1 hierarchyn61         aging, learning, withdraw, secure, port-down, static-addresses and access-pw nodes are moved up 1 hierarchy
85        under mac rather than aging62       under mac rather than aging
86       2021-07-1563       2021-07-15
n87          Re-adjusted dhcp,igmp,mac,mld,mpls,pw-class,split-horizon,static-mac-address andn64         Re-adjusted dhcp,igmp,mac,mld,mpls,pw-class,split-horizon,static-mac-address and
88        storm-control container hierarchy instead of under flooding65       storm-control container hierarchy instead of under flooding
89       2021-06-3066       2021-06-30
n90          Replaced container disable with disable-deprecated;n67         Replaced container disable with disable-deprecated;
91        Added a new container enforce-mtu-match";68       Added a new container enforce-mtu-match";
92    semver:module-version "2.0.0";69    semver:module-version "2.0.0";
93  }70  }
94  revision 2021-05-10 {71  revision 2021-05-10 {
95    description72    description
96      "Initial release";73      "Initial release";
97    semver:module-version "1.0.0";74    semver:module-version "1.0.0";
98  }75  }
9976
100  feature l2vpn_evpn_not_nve_intf {77  feature l2vpn_evpn_not_nve_intf {
101    description78    description
102      "l2vpn evpn not nve intf";79      "l2vpn evpn not nve intf";
103  }80  }
10481
105  feature l2vpn_evpn_is_bundle_intf {82  feature l2vpn_evpn_is_bundle_intf {
106    description83    description
107      "l2vpn evpn is bundle intf";84      "l2vpn evpn is bundle intf";
108  }85  }
10986
110  feature l2vpn_evpn_ves_subif_supported {87  feature l2vpn_evpn_ves_subif_supported {
111    description88    description
112      "l2vpn evpn ves subif supported";89      "l2vpn evpn ves subif supported";
113  }90  }
11491
115  feature l2vpn_platform_srv6_supported {92  feature l2vpn_platform_srv6_supported {
116    description93    description
117      "l2vpn platform srv6 supported";94      "l2vpn platform srv6 supported";
118  }95  }
11996
120  feature l2vpn_iflist_intf_supported {97  feature l2vpn_iflist_intf_supported {
121    description98    description
122      "l2vpn iflist intf supported";99      "l2vpn iflist intf supported";
123  }100  }
124101
125  feature l2vpn_is_cli_supported {102  feature l2vpn_is_cli_supported {
126    description103    description
127      "l2vpn is cli supported";104      "l2vpn is cli supported";
128  }105  }
129106
130  feature l2vpn_bd_non_ether_ac_supported {107  feature l2vpn_bd_non_ether_ac_supported {
131    description108    description
132      "l2vpn bd non ether ac supported";109      "l2vpn bd non ether ac supported";
133  }110  }
134111
135  feature l2vpn_pw_p2mp_supported {112  feature l2vpn_pw_p2mp_supported {
136    description113    description
137      "l2vpn pw p2mp supported";114      "l2vpn pw p2mp supported";
138  }115  }
139116
140  feature l2vpn_cem_func_supported {117  feature l2vpn_cem_func_supported {
141    description118    description
142      "l2vpn cem func supported";119      "l2vpn cem func supported";
143  }120  }
144121
145  feature l2vpn_platform_vpws_seamless_integration_supported {122  feature l2vpn_platform_vpws_seamless_integration_supported {
146    description123    description
147      "l2vpn platform vpws seamless integration supported";124      "l2vpn platform vpws seamless integration supported";
148  }125  }
149126
150  feature l2vpn_p2p_backup_supported {127  feature l2vpn_p2p_backup_supported {
151    description128    description
152      "l2vpn p2p backup supported";129      "l2vpn p2p backup supported";
153  }130  }
154131
155  feature l2vpn_cfg_ipv6_pw_supported {132  feature l2vpn_cfg_ipv6_pw_supported {
156    description133    description
157      "l2vpn cfg ipv6 pw supported";134      "l2vpn cfg ipv6 pw supported";
158  }135  }
159136
160  grouping IF-BODY {137  grouping IF-BODY {
n161    descriptionn
162      "Grouping for interface";
163    container host-routing {138    container host-routing {
164      when "../a1:interface-name[starts-with(text(),'BVI')]" {139      when "../a1:interface-name[starts-with(text(),'BVI')]" {
165        tailf:dependency "../a1:interface-name";140        tailf:dependency "../a1:interface-name";
166      }141      }
167      presence "Indicates a host-routing node is configured.";142      presence "Indicates a host-routing node is configured.";
168      description143      description
169        "Enable host-routing on this interface";144        "Enable host-routing on this interface";
170    }145    }
171    container gratuitous-announcement-timer {146    container gratuitous-announcement-timer {
172      presence "Indicates a gratuitous-announcement-timer node is configured.";147      presence "Indicates a gratuitous-announcement-timer node is configured.";
173      description148      description
174        "Enable gratuitous announcement (GARP) timer on this interface";149        "Enable gratuitous announcement (GARP) timer on this interface";
175      leaf interval {150      leaf interval {
176        type uint32 {151        type uint32 {
177          range "60..30000" {152          range "60..30000" {
178            description153            description
179              "seconds";154              "seconds";
180          }155          }
181        }156        }
182        description157        description
183          "Gratuitous announcement (GARP/NA) timer interval in seconds";158          "Gratuitous announcement (GARP/NA) timer interval in seconds";
184      }159      }
185      leaf jitter {160      leaf jitter {
186        type uint32 {161        type uint32 {
187          range "0..100" {162          range "0..100" {
188            description163            description
189              "percent";164              "percent";
190          }165          }
191        }166        }
192        description167        description
193          "Gratuitous announcement (GARP/NA) timer jitter percentage";168          "Gratuitous announcement (GARP/NA) timer jitter percentage";
194      }169      }
195    }170    }
196    container pw-ether {171    container pw-ether {
197      when "../a1:interface-name[starts-with(text(),'PW-Ether')]" {172      when "../a1:interface-name[starts-with(text(),'PW-Ether')]" {
198        tailf:dependency "../a1:interface-name";173        tailf:dependency "../a1:interface-name";
199      }174      }
200      description175      description
201        "Configuration for pw-ether interface";176        "Configuration for pw-ether interface";
202      container attach {177      container attach {
203        description178        description
204          "Attach to an interface list";179          "Attach to an interface list";
205        leaf generic-interface-list {180        leaf generic-interface-list {
206          type xr:Cisco-ios-xr-string {181          type xr:Cisco-ios-xr-string {
207            length "1..32" {182            length "1..32" {
208              description183              description
209                "The name of the interface list";184                "The name of the interface list";
210            }185            }
211          }186          }
212          description187          description
213            "Interface List";188            "Interface List";
214        }189        }
215      }190      }
216      leaf l2overhead {191      leaf l2overhead {
217        type uint32 {192        type uint32 {
218          range "1..64" {193          range "1..64" {
219            description194            description
220              "L2 overhead size in bytes";195              "L2 overhead size in bytes";
221          }196          }
222        }197        }
223        description198        description
224          "Set Layer 2 Overhead size";199          "Set Layer 2 Overhead size";
225      }200      }
226    }201    }
227    container pw-iw {202    container pw-iw {
228      when "../a1:interface-name[starts-with(text(),'PW-IW')]" {203      when "../a1:interface-name[starts-with(text(),'PW-IW')]" {
229        tailf:dependency "../a1:interface-name";204        tailf:dependency "../a1:interface-name";
230      }205      }
231      description206      description
232        "Configuration for pw-iw interface";207        "Configuration for pw-iw interface";
233      container attach {208      container attach {
234        description209        description
235          "Attach to an interface list";210          "Attach to an interface list";
236        leaf generic-interface-list {211        leaf generic-interface-list {
237          type xr:Cisco-ios-xr-string {212          type xr:Cisco-ios-xr-string {
238            length "1..32" {213            length "1..32" {
239              description214              description
240                "The name of the interface list";215                "The name of the interface list";
241            }216            }
242          }217          }
243          description218          description
244            "Interface List";219            "Interface List";
245        }220        }
246      }221      }
247      leaf l2overhead {222      leaf l2overhead {
248        type uint32 {223        type uint32 {
249          range "1..64" {224          range "1..64" {
250            description225            description
251              "L2 overhead size in bytes";226              "L2 overhead size in bytes";
252          }227          }
253        }228        }
254        description229        description
255          "Set Layer 2 Overhead size";230          "Set Layer 2 Overhead size";
256      }231      }
257    }232    }
258  }233  }
259234
260  grouping VRF-BODY {235  grouping VRF-BODY {
n261    descriptionn
262      "Grouping for vrf";
263    leaf evpn-route-sync {236    leaf evpn-route-sync {
264      type uint32 {237      type uint32 {
265        range "1..65534" {238        range "1..65534" {
266          description239          description
267            "EVPN Instance VPN ID used to synchronize the VRF route(s)";240            "EVPN Instance VPN ID used to synchronize the VRF route(s)";
268        }241        }
269      }242      }
270      description243      description
271        "Configure the EVPN Instance VPN ID for route synchronization";244        "Configure the EVPN Instance VPN ID for route synchronization";
272    }245    }
273  }246  }
274247
275  augment "/a1:interfaces/a1:interface" {248  augment "/a1:interfaces/a1:interface" {
n276    descriptionn
277      "This augment extends active nodes configuration";
278    uses IF-BODY;249    uses IF-BODY;
279  }250  }
280  augment "/a1:interfaces/a1:interface-preconfigure" {251  augment "/a1:interfaces/a1:interface-preconfigure" {
n281    descriptionn
282      "This augment extends preconfigured nodes
283       configuration";
284    uses IF-BODY;252    uses IF-BODY;
285  }253  }
286  augment "/a2:snmp-server/a2:traps" {254  augment "/a2:snmp-server/a2:traps" {
n287    descriptionn
288      "This augment extends snmp-server traps nodes
289       configuration";
290    container l2vpn {255    container l2vpn {
291      description256      description
292        "Enable L2VPN traps";257        "Enable L2VPN traps";
293      container all {258      container all {
294        presence "Indicates a all node is configured.";259        presence "Indicates a all node is configured.";
295        description260        description
296          "Enable all L2VPN traps";261          "Enable all L2VPN traps";
297      }262      }
298      container vc-up {263      container vc-up {
299        presence "Indicates a vc-up node is configured.";264        presence "Indicates a vc-up node is configured.";
300        description265        description
301          "Enable VC up traps";266          "Enable VC up traps";
302      }267      }
303      container vc-down {268      container vc-down {
304        presence "Indicates a vc-down node is configured.";269        presence "Indicates a vc-down node is configured.";
305        description270        description
306          "Enable VC down traps";271          "Enable VC down traps";
307      }272      }
308      container cisco {273      container cisco {
309        presence "Indicates a cisco node is configured.";274        presence "Indicates a cisco node is configured.";
310        description275        description
311          "Cisco format including extra varbinds (default IETF)";276          "Cisco format including extra varbinds (default IETF)";
312      }277      }
313    }278    }
314    container vpls {279    container vpls {
315      description280      description
316        "Enable VPLS traps";281        "Enable VPLS traps";
317      container all {282      container all {
318        presence "Indicates a all node is configured.";283        presence "Indicates a all node is configured.";
319        description284        description
320          "Enable all VPLS traps";285          "Enable all VPLS traps";
321      }286      }
322      container status {287      container status {
323        presence "Indicates a status node is configured.";288        presence "Indicates a status node is configured.";
324        description289        description
325          "Enable VPLS Status traps";290          "Enable VPLS Status traps";
326      }291      }
327      container full-raise {292      container full-raise {
328        presence "Indicates a full-raise node is configured.";293        presence "Indicates a full-raise node is configured.";
329        description294        description
330          "Enable VPLS Full Raise traps";295          "Enable VPLS Full Raise traps";
331      }296      }
332      container full-clear {297      container full-clear {
333        presence "Indicates a full-clear node is configured.";298        presence "Indicates a full-clear node is configured.";
334        description299        description
335          "Enable VPLS Full Clear traps";300          "Enable VPLS Full Clear traps";
336      }301      }
337    }302    }
338  }303  }
339  augment "/a3:vrfs/a3:vrf" {304  augment "/a3:vrfs/a3:vrf" {
n340    descriptionn
341      "This augment extends vrf nodes configuration";
342    uses VRF-BODY;305    uses VRF-BODY;
343  }306  }
344  container evpn {307  container evpn {
345    presence "Indicates a evpn node is configured.";308    presence "Indicates a evpn node is configured.";
346    description309    description
347      "Configure E-VPN commands";310      "Configure E-VPN commands";
348    container interface {311    container interface {
349      description312      description
350        "Assign interface to EVPN";313        "Assign interface to EVPN";
351      list interface {314      list interface {
352        key "interface-name";315        key "interface-name";
353        description316        description
354          "Specify interface name";317          "Specify interface name";
355        leaf interface-name {318        leaf interface-name {
356          type xr:Interface-name;319          type xr:Interface-name;
357          description320          description
358            "Specify interface name";321            "Specify interface name";
359        }322        }
360        container mac-flush {323        container mac-flush {
361          description324          description
362            "MAC Flush mode";325            "MAC Flush mode";
363          container mvrp {326          container mvrp {
364            presence "Indicates a mvrp node is configured.";327            presence "Indicates a mvrp node is configured.";
365            description328            description
366              "MAC Flush over MVRP";329              "MAC Flush over MVRP";
367          }330          }
368        }331        }
369        container timers {332        container timers {
370          presence "Indicates a timers node is configured.";333          presence "Indicates a timers node is configured.";
371          description334          description
372            "Configure interface-specific EVPN timers";335            "Configure interface-specific EVPN timers";
373          leaf peering {336          leaf peering {
374            type uint32 {337            type uint32 {
375              range "0..300" {338              range "0..300" {
376                description339                description
377                  "Value in seconds, default is 3 seconds";340                  "Value in seconds, default is 3 seconds";
378              }341              }
379            }342            }
380            description343            description
381              "Interface-specific peering timer";344              "Interface-specific peering timer";
382          }345          }
383          leaf recovery {346          leaf recovery {
384            type uint32 {347            type uint32 {
385              range "0..3600" {348              range "0..3600" {
386                description349                description
387                  "Value in seconds, default is 30 seconds";350                  "Value in seconds, default is 30 seconds";
388              }351              }
389            }352            }
390            description353            description
391              "Interface-specific recovery timer";354              "Interface-specific recovery timer";
392          }355          }
393          leaf carving {356          leaf carving {
394            type uint32 {357            type uint32 {
395              range "0..300" {358              range "0..300" {
396                description359                description
397                  "Value in seconds, default is 0 seconds";360                  "Value in seconds, default is 0 seconds";
398              }361              }
399            }362            }
400            description363            description
401              "Interface-specific carving timer";364              "Interface-specific carving timer";
402          }365          }
403          leaf ac-debounce {366          leaf ac-debounce {
404            type uint32 {367            type uint32 {
405              range "0..300000" {368              range "0..300000" {
406                description369                description
407                  "Value in milliseconds, default is 3000 milliseconds";370                  "Value in milliseconds, default is 3000 milliseconds";
408              }371              }
409            }372            }
410            description373            description
411              "Interface-specific AC Debounce timer";374              "Interface-specific AC Debounce timer";
412          }375          }
413        }376        }
414        container ethernet-segment {377        container ethernet-segment {
415          presence "Indicates a ethernet-segment node is configured.";378          presence "Indicates a ethernet-segment node is configured.";
416          description379          description
417            "Ethernet Segment configuration commands";380            "Ethernet Segment configuration commands";
418          container identifier {381          container identifier {
419            description382            description
420              "Ethernet Segment identifier (ESI)";383              "Ethernet Segment identifier (ESI)";
421            container type {384            container type {
422              description385              description
423                "ESI Type";386                "ESI Type";
424              container zero {387              container zero {
425                presence "Indicates a zero node is configured.";388                presence "Indicates a zero node is configured.";
426                description389                description
427                  "Type 0 (arbitrary 9-octet ESI value)";390                  "Type 0 (arbitrary 9-octet ESI value)";
n428                leaf esi {n391                leaf bytes-1 {
429                  type string {392                  type xr:Hex-integer-8;
430                    length "1..254" {
431                      description
432                        "9-octet ESI value, xx.xx.xx.xx.xx.xx.xx.xx.xx";
433                    }
434                  }
435                  mandatory true;393                  mandatory true;
436                  description394                  description
n437                    "ESI value";n395                    "1st Byte";
396                }
397                leaf bytes-23 {
398                  type xr:Hex-integer-16;
399                  units "byte";
400                  mandatory true;
401                  description
402                    "2nd and 3rd Bytes";
403                }
404                leaf bytes-45 {
405                  type xr:Hex-integer-16;
406                  units "byte";
407                  mandatory true;
408                  description
409                    "4th and 5th Bytes";
410                }
411                leaf bytes-67 {
412                  type xr:Hex-integer-16;
413                  units "byte";
414                  mandatory true;
415                  description
416                    "6th and 7th Bytes";
417                }
418                leaf bytes-89 {
419                  type xr:Hex-integer-16;
420                  units "byte";
421                  mandatory true;
422                  description
423                    "8th and 9th Bytes";
438                }424                }
439              }425              }
440            }426            }
441          }427          }
442          container load-balancing-mode {428          container load-balancing-mode {
443            description429            description
444              "Specify load balancing mode";430              "Specify load balancing mode";
445            container all-active {431            container all-active {
446              must432              must
447                "not(../port-active or ../single-active433                "not(../port-active or ../single-active
448                 or ../single-flow-active)";434                 or ../single-flow-active)";
449              presence "Indicates a all-active node is configured.";435              presence "Indicates a all-active node is configured.";
450              description436              description
451                "All-Active load balancing";437                "All-Active load balancing";
452            }438            }
453            container port-active {439            container port-active {
454              must440              must
455                "not(../all-active or ../single-active441                "not(../all-active or ../single-active
456                 or ../single-flow-active)";442                 or ../single-flow-active)";
457              presence "Indicates a port-active node is configured.";443              presence "Indicates a port-active node is configured.";
458              description444              description
459                "Port-Active load balancing";445                "Port-Active load balancing";
460            }446            }
461            container single-active {447            container single-active {
462              must448              must
463                "not(../all-active or ../port-active449                "not(../all-active or ../port-active
464                 or ../single-flow-active)";450                 or ../single-flow-active)";
465              presence "Indicates a single-active node is configured.";451              presence "Indicates a single-active node is configured.";
466              description452              description
467                "Single-Active load balancing";453                "Single-Active load balancing";
468            }454            }
469            container single-flow-active {455            container single-flow-active {
470              must456              must
471                "not(../all-active or ../port-active457                "not(../all-active or ../port-active
472                 or ../single-active)";458                 or ../single-active)";
473              presence "Indicates a single-flow-active node is configured.";459              presence "Indicates a single-flow-active node is configured.";
474              description460              description
475                "Single-Flow-Active load balancing";461                "Single-Flow-Active load balancing";
476            }462            }
477          }463          }
478          leaf backbone-source-mac {464          leaf backbone-source-mac {
479            type yang:mac-address;465            type yang:mac-address;
480            description466            description
481              "Backbone Source MAC (PBB Only)";467              "Backbone Source MAC (PBB Only)";
482          }468          }
483          container force {469          container force {
484            description470            description
485              "Forced attributes for this ethernet segment";471              "Forced attributes for this ethernet segment";
486            container single-homed {472            container single-homed {
487              presence "Indicates a single-homed node is configured.";473              presence "Indicates a single-homed node is configured.";
488              description474              description
489                "Ethernet segment is to remain single-home";475                "Ethernet segment is to remain single-home";
490            }476            }
491          }477          }
492          container service-carving {478          container service-carving {
493            description479            description
494              "Specify service carving";480              "Specify service carving";
495            container manual {481            container manual {
496              presence "Indicates a manual node is configured.";482              presence "Indicates a manual node is configured.";
497              description483              description
498                "Configure EVPN  Manual services list";484                "Configure EVPN  Manual services list";
499              leaf primary {485              leaf primary {
500                type string {486                type string {
501                  length "1..150" {487                  length "1..150" {
502                    description488                    description
503                      "Primary services list notation: '256,356-400,410'";489                      "Primary services list notation: '256,356-400,410'";
504                  }490                  }
505                }491                }
506                must "../secondary";492                must "../secondary";
507                description493                description
508                  "Primary services list";494                  "Primary services list";
509              }495              }
510              leaf secondary {496              leaf secondary {
511                type string {497                type string {
512                  length "1..150" {498                  length "1..150" {
513                    description499                    description
514                      "Secondary services list notation: '256,356-400,410'";500                      "Secondary services list notation: '256,356-400,410'";
515                  }501                  }
516                }502                }
517                must "../primary";503                must "../primary";
518                description504                description
519                  "Secondary services list";505                  "Secondary services list";
520              }506              }
521            }507            }
522            container hrw {508            container hrw {
523              presence "Indicates a hrw node is configured.";509              presence "Indicates a hrw node is configured.";
524              description510              description
525                "HRW mode of carving services";511                "HRW mode of carving services";
526            }512            }
527            container multicast {513            container multicast {
528              description514              description
529                "Multicast specific service carving";515                "Multicast specific service carving";
530              container hrw-s-g {516              container hrw-s-g {
531                must "not(../hrw-g)";517                must "not(../hrw-g)";
532                presence "Indicates a hrw-s-g node is configured.";518                presence "Indicates a hrw-s-g node is configured.";
533                description519                description
534                  "HRW s,g mode";520                  "HRW s,g mode";
535              }521              }
536              container hrw-g {522              container hrw-g {
537                must "not(../hrw-s-g)";523                must "not(../hrw-s-g)";
538                presence "Indicates a hrw-g node is configured.";524                presence "Indicates a hrw-g node is configured.";
539                description525                description
540                  "HRW *,g mode";526                  "HRW *,g mode";
541              }527              }
542            }528            }
543            container preference-based {529            container preference-based {
544              presence "Indicates a preference-based node is configured.";530              presence "Indicates a preference-based node is configured.";
545              description531              description
546                "Configure EVPN  Preference-Based";532                "Configure EVPN  Preference-Based";
547              leaf weight {533              leaf weight {
548                type uint32 {534                type uint32 {
549                  range "0..65535" {535                  range "0..65535" {
550                    description536                    description
551                      "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";537                      "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";
552                  }538                  }
553                }539                }
554                description540                description
555                  "Preference value";541                  "Preference value";
556              }542              }
557              container access-driven {543              container access-driven {
558                presence "Indicates a access-driven node is configured.";544                presence "Indicates a access-driven node is configured.";
559                description545                description
560                  "Access-Driven DF Election";546                  "Access-Driven DF Election";
561              }547              }
562            }548            }
563          }549          }
564          container bgp {550          container bgp {
565            description551            description
566              "Configure BGP";552              "Configure BGP";
567            leaf route-target {553            leaf route-target {
568              type yang:mac-address;554              type yang:mac-address;
569              description555              description
570                "Set ES-Import Route Target";556                "Set ES-Import Route Target";
571            }557            }
572          }558          }
573          container convergence {559          container convergence {
574            presence "Indicates a convergence node is configured.";560            presence "Indicates a convergence node is configured.";
575            description561            description
576              "Specify convergence mode(s) and options";562              "Specify convergence mode(s) and options";
577            container reroute {563            container reroute {
578              presence "Indicates a reroute node is configured.";564              presence "Indicates a reroute node is configured.";
579              description565              description
580                "Redirect unicast traffic to backup peer";566                "Redirect unicast traffic to backup peer";
581            }567            }
582            container mac-mobility {568            container mac-mobility {
583              presence "Indicates a mac-mobility node is configured.";569              presence "Indicates a mac-mobility node is configured.";
584              description570              description
585                "MAC-Mobility triggered reconvergence";571                "MAC-Mobility triggered reconvergence";
586            }572            }
587            container nexthop-tracking {573            container nexthop-tracking {
588              presence "Indicates a nexthop-tracking node is configured.";574              presence "Indicates a nexthop-tracking node is configured.";
589              description575              description
590                "Enable EVPN procedures to be influenced by BGP nexthop reachability";576                "Enable EVPN procedures to be influenced by BGP nexthop reachability";
591            }577            }
592          }578          }
593        }579        }
594        leaf core-isolation-group {580        leaf core-isolation-group {
595          if-feature "l2vpn_evpn_is_bundle_intf";581          if-feature "l2vpn_evpn_is_bundle_intf";
596          type uint32 {582          type uint32 {
597            range "1..4294967295" {583            range "1..4294967295" {
598              description584              description
599                "EVPN group ID number";585                "EVPN group ID number";
600            }586            }
601          }587          }
602          description588          description
603            "Core isolation group";589            "Core isolation group";
604        }590        }
605        container access-signal {591        container access-signal {
606          if-feature "l2vpn_evpn_is_bundle_intf";592          if-feature "l2vpn_evpn_is_bundle_intf";
607          description593          description
608            "Override default signal sent to bring down access circuit";594            "Override default signal sent to bring down access circuit";
609          container bundle-down {595          container bundle-down {
610            presence "Indicates a bundle-down node is configured.";596            presence "Indicates a bundle-down node is configured.";
611            description597            description
612              "Signal Bundle Down";598              "Signal Bundle Down";
613          }599          }
614        }600        }
615        container virtual-ethernet-segment {601        container virtual-ethernet-segment {
616          if-feature "l2vpn_evpn_ves_subif_supported";602          if-feature "l2vpn_evpn_ves_subif_supported";
617          presence "Indicates a virtual-ethernet-segment node is configured.";603          presence "Indicates a virtual-ethernet-segment node is configured.";
618          description604          description
619            "Virtual Ethernet Segment configuration commands";605            "Virtual Ethernet Segment configuration commands";
620          container identifier {606          container identifier {
621            description607            description
622              "VES identifier (6 byte value in MAC format)";608              "VES identifier (6 byte value in MAC format)";
623            container type {609            container type {
624              description610              description
625                "ESI Type";611                "ESI Type";
626              leaf three {612              leaf three {
627                type yang:mac-address;613                type yang:mac-address;
628                description614                description
629                  "Type 3 (6-byte value in MAC format)";615                  "Type 3 (6-byte value in MAC format)";
630              }616              }
631            }617            }
632          }618          }
633        }619        }
634      }620      }
635    }621    }
636    container virtual {622    container virtual {
637      if-feature "l2vpn_evpn_ves_subif_supported";623      if-feature "l2vpn_evpn_ves_subif_supported";
638      description624      description
639        "Virtual Access Segment to EVPN";625        "Virtual Access Segment to EVPN";
640      container neighbor {626      container neighbor {
641        description627        description
642          "Specify the peer to cross connect";628          "Specify the peer to cross connect";
643        list neighbor {629        list neighbor {
644          key "address pw-id";630          key "address pw-id";
645          description631          description
646            "Specify the peer to cross connect";632            "Specify the peer to cross connect";
647          leaf address {633          leaf address {
648            type inet:ipv4-address-no-zone;634            type inet:ipv4-address-no-zone;
649            description635            description
650              "IPv4 address of the peer";636              "IPv4 address of the peer";
651          }637          }
652          leaf pw-id {638          leaf pw-id {
653            type uint32 {639            type uint32 {
654              range "1..4294967295" {640              range "1..4294967295" {
655                description641                description
656                  "Pseudowire ID";642                  "Pseudowire ID";
657              }643              }
658            }644            }
659            description645            description
660              "Specify the pseudowire id";646              "Specify the pseudowire id";
661          }647          }
662          container timers {648          container timers {
663            presence "Indicates a timers node is configured.";649            presence "Indicates a timers node is configured.";
664            description650            description
665              "Configure access PW-specific EVPN timers";651              "Configure access PW-specific EVPN timers";
666            leaf peering {652            leaf peering {
667              type uint32 {653              type uint32 {
668                range "0..300" {654                range "0..300" {
669                  description655                  description
670                    "Value in seconds, default is 3 seconds";656                    "Value in seconds, default is 3 seconds";
671                }657                }
672              }658              }
673              description659              description
674                "Access PW-specific peering timer";660                "Access PW-specific peering timer";
675            }661            }
676            leaf recovery {662            leaf recovery {
677              type uint32 {663              type uint32 {
678                range "0..3600" {664                range "0..3600" {
679                  description665                  description
680                    "Value in seconds, default is 30 seconds";666                    "Value in seconds, default is 30 seconds";
681                }667                }
682              }668              }
683              description669              description
684                "Access PW-specific recovery timer";670                "Access PW-specific recovery timer";
685            }671            }
686            leaf carving {672            leaf carving {
687              type uint32 {673              type uint32 {
688                range "0..300" {674                range "0..300" {
689                  description675                  description
690                    "Value in seconds, default is 0 seconds";676                    "Value in seconds, default is 0 seconds";
691                }677                }
692              }678              }
693              description679              description
694                "Access PW-specific carving timer";680                "Access PW-specific carving timer";
695            }681            }
696            leaf ac-debounce {682            leaf ac-debounce {
697              type uint32 {683              type uint32 {
698                range "0..300000" {684                range "0..300000" {
699                  description685                  description
700                    "Value in milliseconds, default is 3000 milliseconds";686                    "Value in milliseconds, default is 3000 milliseconds";
701                }687                }
702              }688              }
703              description689              description
704                "Access PW-specific AC Debounce timer";690                "Access PW-specific AC Debounce timer";
705            }691            }
706          }692          }
707          container ethernet-segment {693          container ethernet-segment {
708            presence "Indicates a ethernet-segment node is configured.";694            presence "Indicates a ethernet-segment node is configured.";
709            description695            description
710              "Ethernet Segment configuration commands";696              "Ethernet Segment configuration commands";
711            container identifier {697            container identifier {
712              description698              description
713                "Ethernet Segment identifier (ESI)";699                "Ethernet Segment identifier (ESI)";
714              container type {700              container type {
715                description701                description
716                  "ESI Type";702                  "ESI Type";
717                container zero {703                container zero {
718                  presence "Indicates a zero node is configured.";704                  presence "Indicates a zero node is configured.";
719                  description705                  description
720                    "Type 0 (arbitrary 9-octet ESI value)";706                    "Type 0 (arbitrary 9-octet ESI value)";
n721                  leaf esi {n707                  leaf bytes-1 {
722                    type string {708                    type xr:Hex-integer-8;
723                      length "1..254" {
724                        description
725                          "9-octet ESI value, xx.xx.xx.xx.xx.xx.xx.xx.xx";
726                      }
727                    }
728                    mandatory true;709                    mandatory true;
729                    description710                    description
n730                      "ESI value";n711                      "1st Byte";
712                  }
713                  leaf bytes-23 {
714                    type xr:Hex-integer-16;
715                    units "byte";
716                    mandatory true;
717                    description
718                      "2nd and 3rd Bytes";
719                  }
720                  leaf bytes-45 {
721                    type xr:Hex-integer-16;
722                    units "byte";
723                    mandatory true;
724                    description
725                      "4th and 5th Bytes";
726                  }
727                  leaf bytes-67 {
728                    type xr:Hex-integer-16;
729                    units "byte";
730                    mandatory true;
731                    description
732                      "6th and 7th Bytes";
733                  }
734                  leaf bytes-89 {
735                    type xr:Hex-integer-16;
736                    units "byte";
737                    mandatory true;
738                    description
739                      "8th and 9th Bytes";
731                  }740                  }
732                }741                }
733              }742              }
734            }743            }
735            container service-carving {744            container service-carving {
736              description745              description
737                "Specify service carving";746                "Specify service carving";
738              container manual {747              container manual {
739                presence "Indicates a manual node is configured.";748                presence "Indicates a manual node is configured.";
740                description749                description
741                  "Configure EVPN  Manual services list";750                  "Configure EVPN  Manual services list";
742                leaf primary {751                leaf primary {
743                  type string {752                  type string {
744                    length "1..150" {753                    length "1..150" {
745                      description754                      description
746                        "Primary services list notation: '256,356-400,410'";755                        "Primary services list notation: '256,356-400,410'";
747                    }756                    }
748                  }757                  }
749                  must "../secondary";758                  must "../secondary";
750                  description759                  description
751                    "Primary services list";760                    "Primary services list";
752                }761                }
753                leaf secondary {762                leaf secondary {
754                  type string {763                  type string {
755                    length "1..150" {764                    length "1..150" {
756                      description765                      description
757                        "Secondary services list notation: '256,356-400,410'";766                        "Secondary services list notation: '256,356-400,410'";
758                    }767                    }
759                  }768                  }
760                  must "../primary";769                  must "../primary";
761                  description770                  description
762                    "Secondary services list";771                    "Secondary services list";
763                }772                }
764              }773              }
765              container hrw {774              container hrw {
766                presence "Indicates a hrw node is configured.";775                presence "Indicates a hrw node is configured.";
767                description776                description
768                  "HRW mode of carving services";777                  "HRW mode of carving services";
769              }778              }
770              container multicast {779              container multicast {
771                description780                description
772                  "Multicast specific service carving";781                  "Multicast specific service carving";
773                container hrw-s-g {782                container hrw-s-g {
774                  must "not(../hrw-g)";783                  must "not(../hrw-g)";
775                  presence "Indicates a hrw-s-g node is configured.";784                  presence "Indicates a hrw-s-g node is configured.";
776                  description785                  description
777                    "HRW s,g mode";786                    "HRW s,g mode";
778                }787                }
779                container hrw-g {788                container hrw-g {
780                  must "not(../hrw-s-g)";789                  must "not(../hrw-s-g)";
781                  presence "Indicates a hrw-g node is configured.";790                  presence "Indicates a hrw-g node is configured.";
782                  description791                  description
783                    "HRW *,g mode";792                    "HRW *,g mode";
784                }793                }
785              }794              }
786              container preference-based {795              container preference-based {
787                presence "Indicates a preference-based node is configured.";796                presence "Indicates a preference-based node is configured.";
788                description797                description
789                  "Configure EVPN  Preference-Based";798                  "Configure EVPN  Preference-Based";
790                leaf weight {799                leaf weight {
791                  type uint32 {800                  type uint32 {
792                    range "0..65535" {801                    range "0..65535" {
793                      description802                      description
794                        "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";803                        "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";
795                    }804                    }
796                  }805                  }
797                  description806                  description
798                    "Preference value";807                    "Preference value";
799                }808                }
800                container access-driven {809                container access-driven {
801                  presence "Indicates a access-driven node is configured.";810                  presence "Indicates a access-driven node is configured.";
802                  description811                  description
803                    "Access-Driven DF Election";812                    "Access-Driven DF Election";
804                }813                }
805              }814              }
806            }815            }
807            container bgp {816            container bgp {
808              description817              description
809                "Configure BGP";818                "Configure BGP";
810              leaf route-target {819              leaf route-target {
811                type yang:mac-address;820                type yang:mac-address;
812                description821                description
813                  "Set ES-Import Route Target";822                  "Set ES-Import Route Target";
814              }823              }
815            }824            }
816          }825          }
817        }826        }
818      }827      }
819      container vfis {828      container vfis {
820        description829        description
821          "Specify the virtual forwarding interface name";830          "Specify the virtual forwarding interface name";
822        list vfi {831        list vfi {
823          key "vfi-name";832          key "vfi-name";
824          description833          description
825            "Specify the virtual forwarding interface name";834            "Specify the virtual forwarding interface name";
826          leaf vfi-name {835          leaf vfi-name {
827            type xr:Cisco-ios-xr-string {836            type xr:Cisco-ios-xr-string {
828              length "1..32" {837              length "1..32" {
829                description838                description
830                  "Name of the Virtual Forwarding Interface";839                  "Name of the Virtual Forwarding Interface";
831              }840              }
832            }841            }
833            description842            description
834              "Specify the virtual forwarding interface name";843              "Specify the virtual forwarding interface name";
835          }844          }
836          container timers {845          container timers {
837            presence "Indicates a timers node is configured.";846            presence "Indicates a timers node is configured.";
838            description847            description
839              "Configure access VFI-specific EVPN timers";848              "Configure access VFI-specific EVPN timers";
840            leaf peering {849            leaf peering {
841              type uint32 {850              type uint32 {
842                range "0..300" {851                range "0..300" {
843                  description852                  description
844                    "Value in seconds, default is 3 seconds";853                    "Value in seconds, default is 3 seconds";
845                }854                }
846              }855              }
847              description856              description
848                "Access VFI-specific peering timer";857                "Access VFI-specific peering timer";
849            }858            }
850            leaf recovery {859            leaf recovery {
851              type uint32 {860              type uint32 {
852                range "0..3600" {861                range "0..3600" {
853                  description862                  description
854                    "Value in seconds, default is 30 seconds";863                    "Value in seconds, default is 30 seconds";
855                }864                }
856              }865              }
857              description866              description
858                "Access VFI-specific recovery timer";867                "Access VFI-specific recovery timer";
859            }868            }
860            leaf carving {869            leaf carving {
861              type uint32 {870              type uint32 {
862                range "0..300" {871                range "0..300" {
863                  description872                  description
864                    "Value in seconds, default is 0 seconds";873                    "Value in seconds, default is 0 seconds";
865                }874                }
866              }875              }
867              description876              description
868                "Access VFI-specific carving timer";877                "Access VFI-specific carving timer";
869            }878            }
870            leaf ac-debounce {879            leaf ac-debounce {
871              type uint32 {880              type uint32 {
872                range "0..300000" {881                range "0..300000" {
873                  description882                  description
874                    "Value in milliseconds, default is 3000 milliseconds";883                    "Value in milliseconds, default is 3000 milliseconds";
875                }884                }
876              }885              }
877              description886              description
878                "Access VFI-specific AC Debounce timer";887                "Access VFI-specific AC Debounce timer";
879            }888            }
880          }889          }
881          container ethernet-segment {890          container ethernet-segment {
882            presence "Indicates a ethernet-segment node is configured.";891            presence "Indicates a ethernet-segment node is configured.";
883            description892            description
884              "Ethernet Segment configuration commands";893              "Ethernet Segment configuration commands";
885            container identifier {894            container identifier {
886              description895              description
887                "Ethernet Segment identifier (ESI)";896                "Ethernet Segment identifier (ESI)";
888              container type {897              container type {
889                description898                description
890                  "ESI Type";899                  "ESI Type";
891                container zero {900                container zero {
892                  presence "Indicates a zero node is configured.";901                  presence "Indicates a zero node is configured.";
893                  description902                  description
894                    "Type 0 (arbitrary 9-octet ESI value)";903                    "Type 0 (arbitrary 9-octet ESI value)";
n895                  leaf esi {n904                  leaf bytes-1 {
896                    type string {905                    type xr:Hex-integer-8;
897                      length "1..254" {
898                        description
899                          "9-octet ESI value, xx.xx.xx.xx.xx.xx.xx.xx.xx";
900                      }
901                    }
902                    mandatory true;906                    mandatory true;
903                    description907                    description
n904                      "ESI value";n908                      "1st Byte";
909                  }
910                  leaf bytes-23 {
911                    type xr:Hex-integer-16;
912                    units "byte";
913                    mandatory true;
914                    description
915                      "2nd and 3rd Bytes";
916                  }
917                  leaf bytes-45 {
918                    type xr:Hex-integer-16;
919                    units "byte";
920                    mandatory true;
921                    description
922                      "4th and 5th Bytes";
923                  }
924                  leaf bytes-67 {
925                    type xr:Hex-integer-16;
926                    units "byte";
927                    mandatory true;
928                    description
929                      "6th and 7th Bytes";
930                  }
931                  leaf bytes-89 {
932                    type xr:Hex-integer-16;
933                    units "byte";
934                    mandatory true;
935                    description
936                      "8th and 9th Bytes";
905                  }937                  }
906                }938                }
907              }939              }
908            }940            }
909            container service-carving {941            container service-carving {
910              description942              description
911                "Specify service carving";943                "Specify service carving";
912              container manual {944              container manual {
913                presence "Indicates a manual node is configured.";945                presence "Indicates a manual node is configured.";
914                description946                description
915                  "Configure EVPN  Manual services list";947                  "Configure EVPN  Manual services list";
916                leaf primary {948                leaf primary {
917                  type string {949                  type string {
918                    length "1..150" {950                    length "1..150" {
919                      description951                      description
920                        "Primary services list notation: '256,356-400,410'";952                        "Primary services list notation: '256,356-400,410'";
921                    }953                    }
922                  }954                  }
923                  must "../secondary";955                  must "../secondary";
924                  description956                  description
925                    "Primary services list";957                    "Primary services list";
926                }958                }
927                leaf secondary {959                leaf secondary {
928                  type string {960                  type string {
929                    length "1..150" {961                    length "1..150" {
930                      description962                      description
931                        "Secondary services list notation: '256,356-400,410'";963                        "Secondary services list notation: '256,356-400,410'";
932                    }964                    }
933                  }965                  }
934                  must "../primary";966                  must "../primary";
935                  description967                  description
936                    "Secondary services list";968                    "Secondary services list";
937                }969                }
938              }970              }
939              container hrw {971              container hrw {
940                presence "Indicates a hrw node is configured.";972                presence "Indicates a hrw node is configured.";
941                description973                description
942                  "HRW mode of carving services";974                  "HRW mode of carving services";
943              }975              }
944              container preference-based {976              container preference-based {
945                presence "Indicates a preference-based node is configured.";977                presence "Indicates a preference-based node is configured.";
946                description978                description
947                  "Configure EVPN  Preference-Based";979                  "Configure EVPN  Preference-Based";
948                leaf weight {980                leaf weight {
949                  type uint32 {981                  type uint32 {
950                    range "0..65535" {982                    range "0..65535" {
951                      description983                      description
952                        "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";984                        "Preference DF weight. For Access-Driven DF, use weights of at most 32767 or less.";
953                    }985                    }
954                  }986                  }
955                  description987                  description
956                    "Preference value";988                    "Preference value";
957                }989                }
958                container access-driven {990                container access-driven {
959                  presence "Indicates a access-driven node is configured.";991                  presence "Indicates a access-driven node is configured.";
960                  description992                  description
961                    "Access-Driven DF Election";993                    "Access-Driven DF Election";
962                }994                }
963              }995              }
964            }996            }
965            container bgp {997            container bgp {
966              description998              description
967                "Configure BGP";999                "Configure BGP";
968              leaf route-target {1000              leaf route-target {
969                type yang:mac-address;1001                type yang:mac-address;
970                description1002                description
971                  "Set ES-Import Route Target";1003                  "Set ES-Import Route Target";
972              }1004              }
973            }1005            }
974          }1006          }
975        }1007        }
976      }1008      }
977      container access-evi {1009      container access-evi {
978        presence "Indicates a access-evi node is configured.";1010        presence "Indicates a access-evi node is configured.";
979        description1011        description
980          "Virtual access EVI interface";1012          "Virtual access EVI interface";
981        container ethernet-segment {1013        container ethernet-segment {
982          presence "Indicates a ethernet-segment node is configured.";1014          presence "Indicates a ethernet-segment node is configured.";
983          description1015          description
984            "Ethernet Segment configuration commands";1016            "Ethernet Segment configuration commands";
985          container identifier {1017          container identifier {
986            description1018            description
987              "Ethernet Segment identifier (ESI)";1019              "Ethernet Segment identifier (ESI)";
988            container type {1020            container type {
989              description1021              description
990                "ESI Type";1022                "ESI Type";
991              container zero {1023              container zero {
992                presence "Indicates a zero node is configured.";1024                presence "Indicates a zero node is configured.";
993                description1025                description
994                  "Type 0 (arbitrary 9-octet ESI value)";1026                  "Type 0 (arbitrary 9-octet ESI value)";
n995                leaf esi {n1027                leaf bytes-1 {
996                  type string {1028                  type xr:Hex-integer-8;
997                    length "1..254" {
998                      description
999                        "9-octent ESI value, xx.xx.xx.xx.xx.xx.xx.xx.xx";
1000                    }
1001                  }
1002                  mandatory true;1029                  mandatory true;
1003                  description1030                  description
n1004                    "ESI value";n1031                    "1st Byte";
1032                }
1033                leaf bytes-23 {
1034                  type xr:Hex-integer-16;
1035                  units "byte";
1036                  mandatory true;
1037                  description
1038                    "2nd and 3rd Bytes";
1039                }
1040                leaf bytes-45 {
1041                  type xr:Hex-integer-16;
1042                  units "byte";
1043                  mandatory true;
1044                  description
1045                    "4th and 5th Bytes";
1046                }
1047                leaf bytes-67 {
1048                  type xr:Hex-integer-16;
1049                  units "byte";
1050                  mandatory true;
1051                  description
1052                    "6th and 7th Bytes";
1053                }
1054                leaf bytes-89 {
1055                  type xr:Hex-integer-16;
1056                  units "byte";
1057                  mandatory true;
1058                  description
1059                    "8th and 9th Bytes";
1005                }1060                }
1006              }1061              }
1007            }1062            }
1008          }1063          }
1009          container bgp {1064          container bgp {
1010            description1065            description
1011              "Configure BGP";1066              "Configure BGP";
1012            leaf route-target {1067            leaf route-target {
1013              type yang:mac-address;1068              type yang:mac-address;
1014              description1069              description
1015                "Set ES-Import Route Target";1070                "Set ES-Import Route Target";
1016            }1071            }
1017          }1072          }
1018        }1073        }
1019      }1074      }
1020    }1075    }
1021    container bgp {1076    container bgp {
1022      presence "Indicates a bgp node is configured.";1077      presence "Indicates a bgp node is configured.";
1023      description1078      description
1024        "Configure BGP";1079        "Configure BGP";
1025      container rd {1080      container rd {
1026        description1081        description
1027          "Set the Route Distinguisher";1082          "Set the Route Distinguisher";
1028        leaf two-byte-as-number {1083        leaf two-byte-as-number {
1029          type uint32 {1084          type uint32 {
1030            range "1..65535" {1085            range "1..65535" {
1031              description1086              description
1032                "Two Byte AS Number";1087                "Two Byte AS Number";
1033            }1088            }
1034          }1089          }
n1035          must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n1090          must "not(../four-byte-as-number or ../ipv4-address)";
1036          description1091          description
1037            "Two Byte AS Number";1092            "Two Byte AS Number";
1038        }1093        }
1039        leaf two-byte-as-assigned-number {1094        leaf two-byte-as-assigned-number {
1040          type uint32 {1095          type uint32 {
1041            range "0..4294967295" {1096            range "0..4294967295" {
1042              description1097              description
1043                "AS:nn (hex or decimal format)";1098                "AS:nn (hex or decimal format)";
1044            }1099            }
1045          }1100          }
1046          must "../two-byte-as-number";1101          must "../two-byte-as-number";
1047          description1102          description
1048            "AS:nn (hex or decimal format)";1103            "AS:nn (hex or decimal format)";
1049        }1104        }
1050        leaf four-byte-as-number {1105        leaf four-byte-as-number {
1051          type uint32 {1106          type uint32 {
1052            range "65536..4294967295" {1107            range "65536..4294967295" {
1053              description1108              description
1054                "Four Byte AS number";1109                "Four Byte AS number";
1055            }1110            }
1056          }1111          }
n1057          must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n1112          must "not(../two-byte-as-number or ../ipv4-address)";
1058          description1113          description
1059            "Four Byte AS number";1114            "Four Byte AS number";
1060        }1115        }
1061        leaf four-byte-as-assigned-number {1116        leaf four-byte-as-assigned-number {
1062          type uint32 {1117          type uint32 {
1063            range "0..65535" {1118            range "0..65535" {
1064              description1119              description
1065                "AS:nn (hex or decimal format)";1120                "AS:nn (hex or decimal format)";
1066            }1121            }
1067          }1122          }
1068          must "../four-byte-as-number";1123          must "../four-byte-as-number";
1069          description1124          description
1070            "AS:nn (hex or decimal format)";1125            "AS:nn (hex or decimal format)";
1071        }1126        }
1072        leaf ipv4-address {1127        leaf ipv4-address {
1073          type inet:ipv4-address-no-zone;1128          type inet:ipv4-address-no-zone;
n1074          must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n1129          must "not(../two-byte-as-number or ../four-byte-as-number)";
1075          description1130          description
1076            "IP address";1131            "IP address";
1077        }1132        }
1078        leaf ipv4-address-assigned-number {1133        leaf ipv4-address-assigned-number {
1079          type uint32 {1134          type uint32 {
1080            range "0..65535" {1135            range "0..65535" {
1081              description1136              description
1082                "IP-address:nn (hex or decimal format)";1137                "IP-address:nn (hex or decimal format)";
1083            }1138            }
1084          }1139          }
1085          must "../ipv4-address";1140          must "../ipv4-address";
1086          description1141          description
1087            "IP-address:nn (hex or decimal format)";1142            "IP-address:nn (hex or decimal format)";
1088        }1143        }
1089      }1144      }
1090    }1145    }
1091    container timers {1146    container timers {
1092      presence "Indicates a timers node is configured.";1147      presence "Indicates a timers node is configured.";
1093      description1148      description
1094        "Configure global EVPN timers";1149        "Configure global EVPN timers";
1095      leaf recovery {1150      leaf recovery {
1096        type uint32 {1151        type uint32 {
1097          range "0..3600" {1152          range "0..3600" {
1098            description1153            description
1099              "Value in seconds, default is 30 seconds";1154              "Value in seconds, default is 30 seconds";
1100          }1155          }
1101        }1156        }
1102        description1157        description
1103          "Global recovery timer";1158          "Global recovery timer";
1104      }1159      }
1105      leaf peering {1160      leaf peering {
1106        type uint32 {1161        type uint32 {
1107          range "0..300" {1162          range "0..300" {
1108            description1163            description
1109              "Value in seconds, default is 3 seconds";1164              "Value in seconds, default is 3 seconds";
1110          }1165          }
1111        }1166        }
1112        description1167        description
1113          "Global peering timer";1168          "Global peering timer";
1114      }1169      }
1115      leaf carving {1170      leaf carving {
1116        type uint32 {1171        type uint32 {
1117          range "0..300" {1172          range "0..300" {
1118            description1173            description
1119              "Value in seconds, default is 0 seconds";1174              "Value in seconds, default is 0 seconds";
1120          }1175          }
1121        }1176        }
1122        description1177        description
1123          "Global carving timer";1178          "Global carving timer";
1124      }1179      }
1125      leaf ac-debounce {1180      leaf ac-debounce {
1126        type uint32 {1181        type uint32 {
1127          range "0..300000" {1182          range "0..300000" {
1128            description1183            description
1129              "Value in milliseconds, default is 3000 milliseconds";1184              "Value in milliseconds, default is 3000 milliseconds";
1130          }1185          }
1131        }1186        }
1132        description1187        description
1133          "Global AC Debounce timer";1188          "Global AC Debounce timer";
1134      }1189      }
1135      leaf backup-replacement-delay {1190      leaf backup-replacement-delay {
1136        type uint32 {1191        type uint32 {
1137          range "0..300000" {1192          range "0..300000" {
1138            description1193            description
1139              "Value in milliseconds, default is 6000 milliseconds";1194              "Value in milliseconds, default is 6000 milliseconds";
1140          }1195          }
1141        }1196        }
1142        description1197        description
1143          "When receiving a new backup route, delay installation for this amount of time timer";1198          "When receiving a new backup route, delay installation for this amount of time timer";
1144      }1199      }
1145      leaf mac-postpone {1200      leaf mac-postpone {
1146        type uint32 {1201        type uint32 {
1147          range "0..300" {1202          range "0..300" {
1148            description1203            description
1149              "Value in seconds, default is 300 seconds";1204              "Value in seconds, default is 300 seconds";
1150          }1205          }
1151        }1206        }
1152        description1207        description
1153          "Global MAC withdraw postpone timer";1208          "Global MAC withdraw postpone timer";
1154      }1209      }
1155    }1210    }
1156    container load-balancing {1211    container load-balancing {
1157      presence "Indicates a load-balancing node is configured.";1212      presence "Indicates a load-balancing node is configured.";
1158      description1213      description
1159        "Configure EVPN Global load-balancing";1214        "Configure EVPN Global load-balancing";
1160      container flow-label {1215      container flow-label {
1161        description1216        description
1162          "PBB-EVPN Flow Label load balancing";1217          "PBB-EVPN Flow Label load balancing";
1163        container static {1218        container static {
1164          presence "Indicates a static node is configured.";1219          presence "Indicates a static node is configured.";
1165          description1220          description
1166            "Static configuration of Flow Label";1221            "Static configuration of Flow Label";
1167        }1222        }
1168      }1223      }
1169    }1224    }
1170    container source {1225    container source {
1171      description1226      description
1172        "Configure EVPN source interface";1227        "Configure EVPN source interface";
1173      leaf interface {1228      leaf interface {
1174        type xr:Interface-name;1229        type xr:Interface-name;
1175        description1230        description
1176          "Configure EVPN router-id implicitly through Loopback Interface";1231          "Configure EVPN router-id implicitly through Loopback Interface";
1177      }1232      }
1178    }1233    }
1179    container cost-out {1234    container cost-out {
1180      presence "Indicates a cost-out node is configured.";1235      presence "Indicates a cost-out node is configured.";
1181      description1236      description
1182        "Configure global EVPN cost-out";1237        "Configure global EVPN cost-out";
1183    }1238    }
1184    leaf startup-cost-in {1239    leaf startup-cost-in {
1185      type uint32 {1240      type uint32 {
1186        range "30..86400" {1241        range "30..86400" {
1187          description1242          description
1188            "Value in seconds, disabled by default";1243            "Value in seconds, disabled by default";
1189        }1244        }
1190      }1245      }
1191      description1246      description
1192        "Cost-in after reload timer";1247        "Cost-in after reload timer";
1193    }1248    }
1194    leaf staggered-bringup-timer {1249    leaf staggered-bringup-timer {
1195      type uint32 {1250      type uint32 {
1196        range "0..300000" {1251        range "0..300000" {
1197          description1252          description
1198            "Value in milliseconds, default is 5000 milliseconds";1253            "Value in milliseconds, default is 5000 milliseconds";
1199        }1254        }
1200      }1255      }
1201      description1256      description
1202        "Staggered bringup timer delay timer";1257        "Staggered bringup timer delay timer";
1203    }1258    }
1204    container logging {1259    container logging {
1205      presence "Indicates a logging node is configured.";1260      presence "Indicates a logging node is configured.";
1206      description1261      description
1207        "Configure evpn logging commands";1262        "Configure evpn logging commands";
1208      container df-election {1263      container df-election {
1209        presence "Indicates a df-election node is configured.";1264        presence "Indicates a df-election node is configured.";
1210        description1265        description
1211          "Enable Designated Forwarder election logging";1266          "Enable Designated Forwarder election logging";
1212      }1267      }
1213    }1268    }
1214    container ethernet-segment {1269    container ethernet-segment {
1215      presence "Indicates a ethernet-segment node is configured.";1270      presence "Indicates a ethernet-segment node is configured.";
1216      description1271      description
1217        "Configure global ethernet-segment commands";1272        "Configure global ethernet-segment commands";
1218      container type {1273      container type {
1219        description1274        description
1220          "ESI type";1275          "ESI type";
1221        container one {1276        container one {
1222          description1277          description
1223            "LACP ESI-auto-generation";1278            "LACP ESI-auto-generation";
1224          container auto-generation-disable {1279          container auto-generation-disable {
1225            presence "Indicates a auto-generation-disable node is configured.";1280            presence "Indicates a auto-generation-disable node is configured.";
1226            description1281            description
1227              "Disable ESI auto-generation";1282              "Disable ESI auto-generation";
1228          }1283          }
1229        }1284        }
1230      }1285      }
1231    }1286    }
1232    container groups {1287    container groups {
1233      description1288      description
1234        "Configure EVPN group";1289        "Configure EVPN group";
1235      list group {1290      list group {
1236        key "group-name";1291        key "group-name";
1237        description1292        description
1238          "Configure EVPN group";1293          "Configure EVPN group";
1239        leaf group-name {1294        leaf group-name {
1240          type uint32 {1295          type uint32 {
1241            range "1..4294967295" {1296            range "1..4294967295" {
1242              description1297              description
1243                "EVPN group ID number";1298                "EVPN group ID number";
1244            }1299            }
1245          }1300          }
1246          description1301          description
1247            "Configure EVPN group";1302            "Configure EVPN group";
1248        }1303        }
1249        container core {1304        container core {
1250          description1305          description
1251            "configure EVPN group core interface";1306            "configure EVPN group core interface";
1252          list interface {1307          list interface {
1253            key "interface-name";1308            key "interface-name";
1254            description1309            description
1255              "configure EVPN group core interface";1310              "configure EVPN group core interface";
1256            leaf interface-name {1311            leaf interface-name {
1257              type xr:Interface-name;1312              type xr:Interface-name;
1258              description1313              description
1259                "configure EVPN group core interface";1314                "configure EVPN group core interface";
1260            }1315            }
1261          }1316          }
1262        }1317        }
1263      }1318      }
1264    }1319    }
1265    container evis {1320    container evis {
1266      description1321      description
1267        "Configure EVPN Instance VPN ID";1322        "Configure EVPN Instance VPN ID";
1268      container segment-routing {1323      container segment-routing {
1269        if-feature "l2vpn_platform_srv6_supported";1324        if-feature "l2vpn_platform_srv6_supported";
1270        description1325        description
1271          "Configure Segment Routing EVPN Instance";1326          "Configure Segment Routing EVPN Instance";
1272        container srv6 {1327        container srv6 {
1273          description1328          description
1274            "Configure SRv6 EVPN Instance";1329            "Configure SRv6 EVPN Instance";
1275          list evi {1330          list evi {
1276            key "vpn-id";1331            key "vpn-id";
1277            description1332            description
1278              "Configure EVPN Instance VPN ID";1333              "Configure EVPN Instance VPN ID";
1279            leaf vpn-id {1334            leaf vpn-id {
1280              type uint32 {1335              type uint32 {
1281                range "1..65534" {1336                range "1..65534" {
1282                  description1337                  description
1283                    "EVPN Instance VPN ID value";1338                    "EVPN Instance VPN ID value";
1284                }1339                }
1285              }1340              }
1286              description1341              description
1287                "Configure EVPN Instance VPN ID";1342                "Configure EVPN Instance VPN ID";
1288            }1343            }
1289            container bgp {1344            container bgp {
1290              presence "Indicates a bgp node is configured.";1345              presence "Indicates a bgp node is configured.";
1291              description1346              description
1292                "Configure BGP";1347                "Configure BGP";
1293              container rd {1348              container rd {
1294                description1349                description
1295                  "Set the Route Distinguisher";1350                  "Set the Route Distinguisher";
1296                leaf two-byte-as-number {1351                leaf two-byte-as-number {
1297                  type uint32 {1352                  type uint32 {
1298                    range "1..65535" {1353                    range "1..65535" {
1299                      description1354                      description
1300                        "Two Byte AS Number";1355                        "Two Byte AS Number";
1301                    }1356                    }
1302                  }1357                  }
n1303                  must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n1358                  must "not(../four-byte-as-number or ../ipv4-address)";
1304                  description1359                  description
1305                    "Two Byte AS Number";1360                    "Two Byte AS Number";
1306                }1361                }
1307                leaf two-byte-as-assigned-number {1362                leaf two-byte-as-assigned-number {
1308                  type uint32 {1363                  type uint32 {
1309                    range "0..4294967295" {1364                    range "0..4294967295" {
1310                      description1365                      description
1311                        "AS:nn (hex or decimal format)";1366                        "AS:nn (hex or decimal format)";
1312                    }1367                    }
1313                  }1368                  }
1314                  must "../two-byte-as-number";1369                  must "../two-byte-as-number";
1315                  description1370                  description
1316                    "AS:nn (hex or decimal format)";1371                    "AS:nn (hex or decimal format)";
1317                }1372                }
1318                leaf four-byte-as-number {1373                leaf four-byte-as-number {
1319                  type uint32 {1374                  type uint32 {
1320                    range "65536..4294967295" {1375                    range "65536..4294967295" {
1321                      description1376                      description
1322                        "Four Byte AS number";1377                        "Four Byte AS number";
1323                    }1378                    }
1324                  }1379                  }
n1325                  must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n1380                  must "not(../two-byte-as-number or ../ipv4-address)";
1326                  description1381                  description
1327                    "Four Byte AS number";1382                    "Four Byte AS number";
1328                }1383                }
1329                leaf four-byte-as-assigned-number {1384                leaf four-byte-as-assigned-number {
1330                  type uint32 {1385                  type uint32 {
1331                    range "0..65535" {1386                    range "0..65535" {
1332                      description1387                      description
1333                        "AS:nn (hex or decimal format)";1388                        "AS:nn (hex or decimal format)";
1334                    }1389                    }
1335                  }1390                  }
1336                  must "../four-byte-as-number";1391                  must "../four-byte-as-number";
1337                  description1392                  description
1338                    "AS:nn (hex or decimal format)";1393                    "AS:nn (hex or decimal format)";
1339                }1394                }
1340                leaf ipv4-address {1395                leaf ipv4-address {
1341                  type inet:ipv4-address-no-zone;1396                  type inet:ipv4-address-no-zone;
n1342                  must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n1397                  must "not(../two-byte-as-number or ../four-byte-as-number)";
1343                  description1398                  description
1344                    "IP address";1399                    "IP address";
1345                }1400                }
1346                leaf ipv4-address-assigned-number {1401                leaf ipv4-address-assigned-number {
1347                  type uint32 {1402                  type uint32 {
1348                    range "0..65535" {1403                    range "0..65535" {
1349                      description1404                      description
1350                        "IP-address:nn (hex or decimal format)";1405                        "IP-address:nn (hex or decimal format)";
1351                    }1406                    }
1352                  }1407                  }
1353                  must "../ipv4-address";1408                  must "../ipv4-address";
1354                  description1409                  description
1355                    "IP-address:nn (hex or decimal format)";1410                    "IP-address:nn (hex or decimal format)";
1356                }1411                }
1357              }1412              }
1358              container route-target {1413              container route-target {
1359                description1414                description
1360                  "Set the Route Target";1415                  "Set the Route Target";
1361                container two-byte-as-rts {1416                container two-byte-as-rts {
1362                  description1417                  description
1363                    "Two Byte AS Number Route Target";1418                    "Two Byte AS Number Route Target";
1364                  list two-byte-as-rt {1419                  list two-byte-as-rt {
1365                    key "two-byte-as-number assigned-number";1420                    key "two-byte-as-number assigned-number";
1366                    description1421                    description
1367                      "Two Byte AS Number Route Target";1422                      "Two Byte AS Number Route Target";
1368                    leaf two-byte-as-number {1423                    leaf two-byte-as-number {
1369                      type uint32 {1424                      type uint32 {
1370                        range "1..65535";1425                        range "1..65535";
1371                      }1426                      }
1372                      description1427                      description
1373                        "Two Byte AS Number";1428                        "Two Byte AS Number";
1374                    }1429                    }
1375                    leaf assigned-number {1430                    leaf assigned-number {
1376                      type uint32 {1431                      type uint32 {
1377                        range "0..4294967295" {1432                        range "0..4294967295" {
1378                          description1433                          description
1379                            "AS:nn (hex or decimal format)";1434                            "AS:nn (hex or decimal format)";
1380                        }1435                        }
1381                      }1436                      }
1382                      description1437                      description
1383                        "AS:nn (hex or decimal format)";1438                        "AS:nn (hex or decimal format)";
1384                    }1439                    }
1385                  }1440                  }
1386                }1441                }
1387                container four-byte-as-rts {1442                container four-byte-as-rts {
1388                  description1443                  description
1389                    "Four Byte AS number Route Target";1444                    "Four Byte AS number Route Target";
1390                  list four-byte-as-rt {1445                  list four-byte-as-rt {
1391                    key "four-byte-as-number assigned-number";1446                    key "four-byte-as-number assigned-number";
1392                    description1447                    description
1393                      "Four Byte AS number Route Target";1448                      "Four Byte AS number Route Target";
1394                    leaf four-byte-as-number {1449                    leaf four-byte-as-number {
1395                      type uint32 {1450                      type uint32 {
1396                        range "65536..4294967295";1451                        range "65536..4294967295";
1397                      }1452                      }
1398                      description1453                      description
1399                        "Four Byte AS number";1454                        "Four Byte AS number";
1400                    }1455                    }
1401                    leaf assigned-number {1456                    leaf assigned-number {
1402                      type uint32 {1457                      type uint32 {
1403                        range "0..65535" {1458                        range "0..65535" {
1404                          description1459                          description
1405                            "AS:nn (hex or decimal format)";1460                            "AS:nn (hex or decimal format)";
1406                        }1461                        }
1407                      }1462                      }
1408                      description1463                      description
1409                        "AS:nn (hex or decimal format)";1464                        "AS:nn (hex or decimal format)";
1410                    }1465                    }
1411                  }1466                  }
1412                }1467                }
1413                container ipv4-address-rts {1468                container ipv4-address-rts {
1414                  description1469                  description
1415                    "IP address Route Target";1470                    "IP address Route Target";
1416                  list ipv4-address-rt {1471                  list ipv4-address-rt {
1417                    key "ipv4-address assigned-number";1472                    key "ipv4-address assigned-number";
1418                    description1473                    description
1419                      "IP address";1474                      "IP address";
1420                    leaf ipv4-address {1475                    leaf ipv4-address {
1421                      type inet:ipv4-address-no-zone;1476                      type inet:ipv4-address-no-zone;
1422                      description1477                      description
1423                        "IP address";1478                        "IP address";
1424                    }1479                    }
1425                    leaf assigned-number {1480                    leaf assigned-number {
1426                      type uint32 {1481                      type uint32 {
1427                        range "0..65535" {1482                        range "0..65535" {
1428                          description1483                          description
1429                            "IP-address:nn (hex or decimal format)";1484                            "IP-address:nn (hex or decimal format)";
1430                        }1485                        }
1431                      }1486                      }
1432                      description1487                      description
1433                        "IP-address:nn (hex or decimal format)";1488                        "IP-address:nn (hex or decimal format)";
1434                    }1489                    }
1435                  }1490                  }
1436                }1491                }
1437                container none {1492                container none {
1438                  presence "Indicates a none node is configured.";1493                  presence "Indicates a none node is configured.";
1439                  description1494                  description
1440                    "Withhold BGP RTs";1495                    "Withhold BGP RTs";
1441                }1496                }
1442                container import {1497                container import {
1443                  description1498                  description
1444                    "Import Route Target";1499                    "Import Route Target";
1445                  container two-byte-as-rts {1500                  container two-byte-as-rts {
1446                    description1501                    description
1447                      "Two Byte AS Number Route Target";1502                      "Two Byte AS Number Route Target";
1448                    list two-byte-as-rt {1503                    list two-byte-as-rt {
1449                      key "two-byte-as-number assigned-number";1504                      key "two-byte-as-number assigned-number";
1450                      description1505                      description
1451                        "Two Byte AS Number Route Target";1506                        "Two Byte AS Number Route Target";
1452                      leaf two-byte-as-number {1507                      leaf two-byte-as-number {
1453                        type uint32 {1508                        type uint32 {
1454                          range "1..65535";1509                          range "1..65535";
1455                        }1510                        }
1456                        description1511                        description
1457                          "Two Byte AS Number";1512                          "Two Byte AS Number";
1458                      }1513                      }
1459                      leaf assigned-number {1514                      leaf assigned-number {
1460                        type uint32 {1515                        type uint32 {
1461                          range "0..4294967295" {1516                          range "0..4294967295" {
1462                            description1517                            description
1463                              "AS:nn (hex or decimal format)";1518                              "AS:nn (hex or decimal format)";
1464                          }1519                          }
1465                        }1520                        }
1466                        description1521                        description
1467                          "AS:nn (hex or decimal format)";1522                          "AS:nn (hex or decimal format)";
1468                      }1523                      }
1469                    }1524                    }
1470                  }1525                  }
1471                  container four-byte-as-rts {1526                  container four-byte-as-rts {
1472                    description1527                    description
1473                      "Four Byte AS number Route Target";1528                      "Four Byte AS number Route Target";
1474                    list four-byte-as-rt {1529                    list four-byte-as-rt {
1475                      key "four-byte-as-number assigned-number";1530                      key "four-byte-as-number assigned-number";
1476                      description1531                      description
1477                        "Four Byte AS number Route Target";1532                        "Four Byte AS number Route Target";
1478                      leaf four-byte-as-number {1533                      leaf four-byte-as-number {
1479                        type uint32 {1534                        type uint32 {
1480                          range "65536..4294967295";1535                          range "65536..4294967295";
1481                        }1536                        }
1482                        description1537                        description
1483                          "Four Byte AS number";1538                          "Four Byte AS number";
1484                      }1539                      }
1485                      leaf assigned-number {1540                      leaf assigned-number {
1486                        type uint32 {1541                        type uint32 {
1487                          range "0..65535" {1542                          range "0..65535" {
1488                            description1543                            description
1489                              "AS:nn (hex or decimal format)";1544                              "AS:nn (hex or decimal format)";
1490                          }1545                          }
1491                        }1546                        }
1492                        description1547                        description
1493                          "AS:nn (hex or decimal format)";1548                          "AS:nn (hex or decimal format)";
1494                      }1549                      }
1495                    }1550                    }
1496                  }1551                  }
1497                  container ipv4-address-rts {1552                  container ipv4-address-rts {
1498                    description1553                    description
1499                      "IP address Route Target";1554                      "IP address Route Target";
1500                    list ipv4-address-rt {1555                    list ipv4-address-rt {
1501                      key "ipv4-address assigned-number";1556                      key "ipv4-address assigned-number";
1502                      description1557                      description
1503                        "IP address";1558                        "IP address";
1504                      leaf ipv4-address {1559                      leaf ipv4-address {
1505                        type inet:ipv4-address-no-zone;1560                        type inet:ipv4-address-no-zone;
1506                        description1561                        description
1507                          "IP address";1562                          "IP address";
1508                      }1563                      }
1509                      leaf assigned-number {1564                      leaf assigned-number {
1510                        type uint32 {1565                        type uint32 {
1511                          range "0..65535" {1566                          range "0..65535" {
1512                            description1567                            description
1513                              "IP-address:nn (hex or decimal format)";1568                              "IP-address:nn (hex or decimal format)";
1514                          }1569                          }
1515                        }1570                        }
1516                        description1571                        description
1517                          "IP-address:nn (hex or decimal format)";1572                          "IP-address:nn (hex or decimal format)";
1518                      }1573                      }
1519                    }1574                    }
1520                  }1575                  }
1521                  container none {1576                  container none {
1522                    presence "Indicates a none node is configured.";1577                    presence "Indicates a none node is configured.";
1523                    description1578                    description
1524                      "Withhold BGP RTs";1579                      "Withhold BGP RTs";
1525                  }1580                  }
1526                }1581                }
1527                container export {1582                container export {
1528                  description1583                  description
1529                    "Export Route Target";1584                    "Export Route Target";
1530                  container two-byte-as-rts {1585                  container two-byte-as-rts {
1531                    description1586                    description
1532                      "Two Byte AS Number Route Target";1587                      "Two Byte AS Number Route Target";
1533                    list two-byte-as-rt {1588                    list two-byte-as-rt {
1534                      key "two-byte-as-number assigned-number";1589                      key "two-byte-as-number assigned-number";
1535                      description1590                      description
1536                        "Two Byte AS Number Route Target";1591                        "Two Byte AS Number Route Target";
1537                      leaf two-byte-as-number {1592                      leaf two-byte-as-number {
1538                        type uint32 {1593                        type uint32 {
1539                          range "1..65535";1594                          range "1..65535";
1540                        }1595                        }
1541                        description1596                        description
1542                          "Two Byte AS Number";1597                          "Two Byte AS Number";
1543                      }1598                      }
1544                      leaf assigned-number {1599                      leaf assigned-number {
1545                        type uint32 {1600                        type uint32 {
1546                          range "0..4294967295" {1601                          range "0..4294967295" {
1547                            description1602                            description
1548                              "AS:nn (hex or decimal format)";1603                              "AS:nn (hex or decimal format)";
1549                          }1604                          }
1550                        }1605                        }
1551                        description1606                        description
1552                          "AS:nn (hex or decimal format)";1607                          "AS:nn (hex or decimal format)";
1553                      }1608                      }
1554                    }1609                    }
1555                  }1610                  }
1556                  container four-byte-as-rts {1611                  container four-byte-as-rts {
1557                    description1612                    description
1558                      "Four Byte AS number Route Target";1613                      "Four Byte AS number Route Target";
1559                    list four-byte-as-rt {1614                    list four-byte-as-rt {
1560                      key "four-byte-as-number assigned-number";1615                      key "four-byte-as-number assigned-number";
1561                      description1616                      description
1562                        "Four Byte AS number Route Target";1617                        "Four Byte AS number Route Target";
1563                      leaf four-byte-as-number {1618                      leaf four-byte-as-number {
1564                        type uint32 {1619                        type uint32 {
1565                          range "65536..4294967295";1620                          range "65536..4294967295";
1566                        }1621                        }
1567                        description1622                        description
1568                          "Four Byte AS number";1623                          "Four Byte AS number";
1569                      }1624                      }
1570                      leaf assigned-number {1625                      leaf assigned-number {
1571                        type uint32 {1626                        type uint32 {
1572                          range "0..65535" {1627                          range "0..65535" {
1573                            description1628                            description
1574                              "AS:nn (hex or decimal format)";1629                              "AS:nn (hex or decimal format)";
1575                          }1630                          }
1576                        }1631                        }
1577                        description1632                        description
1578                          "AS:nn (hex or decimal format)";1633                          "AS:nn (hex or decimal format)";
1579                      }1634                      }
1580                    }1635                    }
1581                  }1636                  }
1582                  container ipv4-address-rts {1637                  container ipv4-address-rts {
1583                    description1638                    description
1584                      "IP address Route Target";1639                      "IP address Route Target";
1585                    list ipv4-address-rt {1640                    list ipv4-address-rt {
1586                      key "ipv4-address assigned-number";1641                      key "ipv4-address assigned-number";
1587                      description1642                      description
1588                        "IP address";1643                        "IP address";
1589                      leaf ipv4-address {1644                      leaf ipv4-address {
1590                        type inet:ipv4-address-no-zone;1645                        type inet:ipv4-address-no-zone;
1591                        description1646                        description
1592                          "IP address";1647                          "IP address";
1593                      }1648                      }
1594                      leaf assigned-number {1649                      leaf assigned-number {
1595                        type uint32 {1650                        type uint32 {
1596                          range "0..65535" {1651                          range "0..65535" {
1597                            description1652                            description
1598                              "IP-address:nn (hex or decimal format)";1653                              "IP-address:nn (hex or decimal format)";
1599                          }1654                          }
1600                        }1655                        }
1601                        description1656                        description
1602                          "IP-address:nn (hex or decimal format)";1657                          "IP-address:nn (hex or decimal format)";
1603                      }1658                      }
1604                    }1659                    }
1605                  }1660                  }
1606                  container none {1661                  container none {
1607                    presence "Indicates a none node is configured.";1662                    presence "Indicates a none node is configured.";
1608                    description1663                    description
1609                      "Withhold BGP RTs";1664                      "Withhold BGP RTs";
1610                  }1665                  }
1611                }1666                }
1612              }1667              }
1613              leaf table-policy {1668              leaf table-policy {
1614                type xr:Route-policy-name;1669                type xr:Route-policy-name;
1615                description1670                description
1616                  "Configure policy for installation of forwarding data to L2FIB";1671                  "Configure policy for installation of forwarding data to L2FIB";
1617              }1672              }
1618              container implicit-import-disable {1673              container implicit-import-disable {
1619                presence "Indicates a implicit-import-disable node is configured.";1674                presence "Indicates a implicit-import-disable node is configured.";
1620                description1675                description
1621                  "Disable BGP implicit import";1676                  "Disable BGP implicit import";
1622              }1677              }
1623              container route-policy {1678              container route-policy {
1624                description1679                description
1625                  "Apply route policy";1680                  "Apply route policy";
1626                leaf export {1681                leaf export {
1627                  type xr:Route-policy-name;1682                  type xr:Route-policy-name;
1628                  description1683                  description
1629                    "Export route policy";1684                    "Export route policy";
1630                }1685                }
1631                leaf import {1686                leaf import {
1632                  type xr:Route-policy-name;1687                  type xr:Route-policy-name;
1633                  description1688                  description
1634                    "Import route policy";1689                    "Import route policy";
1635                }1690                }
1636              }1691              }
1637            }1692            }
1638            leaf description {1693            leaf description {
1639              type string {1694              type string {
1640                length "1..64" {1695                length "1..64" {
1641                  description1696                  description
1642                    "EVPN Instance description string";1697                    "EVPN Instance description string";
1643                }1698                }
1644              }1699              }
1645              description1700              description
1646                "Description for this EVPN Instance";1701                "Description for this EVPN Instance";
1647            }1702            }
nn1703            container load-balancing {
1704              presence "Indicates a load-balancing node is configured.";
1705              description
1706                "Configure EVPN Instance load-balancing";
1707              container flow-label {
1708                description
1709                  "Flow Label load balancing";
1710                container static {
1711                  presence "Indicates a static node is configured.";
1712                  description
1713                    "Static configuration of Flow Label";
1714                }
1715              }
1716            }
1648            container ecmp-disable-deprecated {1717            container ecmp-disable-deprecated {
1649              presence "Indicates a ecmp-disable-deprecated node is configured.";1718              presence "Indicates a ecmp-disable-deprecated node is configured.";
1650              description1719              description
1651                "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";1720                "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
1652            }1721            }
1653            container preferred-nexthop {1722            container preferred-nexthop {
1654              description1723              description
1655                "Elect unique active path from ECMP candidate list";1724                "Elect unique active path from ECMP candidate list";
1656              container lowest-ip {1725              container lowest-ip {
1657                must "not(../highest-ip or ../modulo)";1726                must "not(../highest-ip or ../modulo)";
1658                presence "Indicates a lowest-ip node is configured.";1727                presence "Indicates a lowest-ip node is configured.";
1659                description1728                description
1660                  "Lowest nexthop IP is active";1729                  "Lowest nexthop IP is active";
1661              }1730              }
1662              container highest-ip {1731              container highest-ip {
1663                must "not(../lowest-ip or ../modulo)";1732                must "not(../lowest-ip or ../modulo)";
1664                presence "Indicates a highest-ip node is configured.";1733                presence "Indicates a highest-ip node is configured.";
1665                description1734                description
1666                  "Highest nexthop IP is active";1735                  "Highest nexthop IP is active";
1667              }1736              }
1668              container modulo {1737              container modulo {
1669                must "not(../lowest-ip or ../highest-ip)";1738                must "not(../lowest-ip or ../highest-ip)";
1670                presence "Indicates a modulo node is configured.";1739                presence "Indicates a modulo node is configured.";
1671                description1740                description
1672                  "EVI modulo of nexthops cardinality is active";1741                  "EVI modulo of nexthops cardinality is active";
1673              }1742              }
1674            }1743            }
1675            container advertise-mac {1744            container advertise-mac {
1676              presence "Indicates a advertise-mac node is configured.";1745              presence "Indicates a advertise-mac node is configured.";
1677              description1746              description
1678                "Configure EVPN Instance MAC advertisement";1747                "Configure EVPN Instance MAC advertisement";
1679              container bvi-mac {1748              container bvi-mac {
1680                presence "Indicates a bvi-mac node is configured.";1749                presence "Indicates a bvi-mac node is configured.";
1681                description1750                description
1682                  "Advertise local MAC and BVI MAC routes";1751                  "Advertise local MAC and BVI MAC routes";
1683              }1752              }
1684            }1753            }
1685            container unknown-unicast-suppression {1754            container unknown-unicast-suppression {
1686              presence "Indicates a unknown-unicast-suppression node is configured.";1755              presence "Indicates a unknown-unicast-suppression node is configured.";
1687              description1756              description
1688                "Enabling unknown unicast suppression";1757                "Enabling unknown unicast suppression";
1689            }1758            }
nn1759            container control-word-disable {
1760              presence "Indicates a control-word-disable node is configured.";
1761              description
1762                "Disabling control-word";
1763            }
1690            container ignore-mtu-mismatch {1764            container ignore-mtu-mismatch {
1691              presence "Indicates a ignore-mtu-mismatch node is configured.";1765              presence "Indicates a ignore-mtu-mismatch node is configured.";
1692              description1766              description
1693                "Ignore mismatch of local and remote MTUs";1767                "Ignore mismatch of local and remote MTUs";
1694              container disable-deprecated {1768              container disable-deprecated {
1695                presence "Indicates a disable-deprecated node is configured.";1769                presence "Indicates a disable-deprecated node is configured.";
1696                description1770                description
1697                  "Disables ingoring mismatch of local and remote MTUs (deprecated)";1771                  "Disables ingoring mismatch of local and remote MTUs (deprecated)";
1698              }1772              }
1699            }1773            }
1700            container enforce-mtu-match {1774            container enforce-mtu-match {
1701              presence "Indicates a enforce-mtu-match node is configured.";1775              presence "Indicates a enforce-mtu-match node is configured.";
1702              description1776              description
1703                "Enforce matching of local and remote MTUs";1777                "Enforce matching of local and remote MTUs";
1704            }1778            }
1705            container transmit-mtu-zero {1779            container transmit-mtu-zero {
1706              presence "Indicates a transmit-mtu-zero node is configured.";1780              presence "Indicates a transmit-mtu-zero node is configured.";
1707              description1781              description
1708                "Transmit MTU zero to remote instead of actual local MTU";1782                "Transmit MTU zero to remote instead of actual local MTU";
1709              container disable-deprecated {1783              container disable-deprecated {
1710                presence "Indicates a disable-deprecated node is configured.";1784                presence "Indicates a disable-deprecated node is configured.";
1711                description1785                description
1712                  "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";1786                  "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
1713              }1787              }
1714            }1788            }
1715            container transmit-l2-mtu {1789            container transmit-l2-mtu {
1716              presence "Indicates a transmit-l2-mtu node is configured.";1790              presence "Indicates a transmit-l2-mtu node is configured.";
1717              description1791              description
1718                "Transmit L2 MTU of attachment circuit";1792                "Transmit L2 MTU of attachment circuit";
1719            }1793            }
1720            container re-origination-disable {1794            container re-origination-disable {
1721              presence "Indicates a re-origination-disable node is configured.";1795              presence "Indicates a re-origination-disable node is configured.";
1722              description1796              description
1723                "Disable route re-origination";1797                "Disable route re-origination";
1724            }1798            }
1725            container vrf {1799            container vrf {
1726              description1800              description
1727                "Enable EVPN instance for layer-3 route synchronization.";1801                "Enable EVPN instance for layer-3 route synchronization.";
1728              container default {1802              container default {
1729                presence "Indicates a default node is configured.";1803                presence "Indicates a default node is configured.";
1730                description1804                description
1731                  "EVPN Instance for the default VRF";1805                  "EVPN Instance for the default VRF";
1732              }1806              }
1733            }1807            }
nn1808            container multicast {
1809              presence "Indicates a multicast node is configured.";
1810              description
1811                "Configure EVPN Instance Multicast";
1812              container source-connected {
1813                presence "Indicates a source-connected node is configured.";
1814                description
1815                  "Multicast traffic source connected";
1816              }
1817            }
1818            container proxy {
1819              presence "Indicates a proxy node is configured.";
1820              description
1821                "Configure EVPN Instance Proxy";
1822              container igmp-snooping {
1823                presence "Indicates a igmp-snooping node is configured.";
1824                description
1825                  "Proxy mode for IGMP-Snooping (selective multicast)";
1826              }
1827            }
1734            container etree {1828            container etree {
1735              presence "Indicates a etree node is configured.";1829              presence "Indicates a etree node is configured.";
1736              description1830              description
1737                "Configure EVPN Instance E-Tree";1831                "Configure EVPN Instance E-Tree";
nn1832              container leaf {
1833                presence "Indicates a leaf node is configured.";
1834                description
1835                  "Designate EVPN Instance as EVPN E-Tree Leaf Site";
1836              }
1738              container rt-leaf {1837              container rt-leaf {
1739                presence "Indicates a rt-leaf node is configured.";1838                presence "Indicates a rt-leaf node is configured.";
1740                description1839                description
1741                  "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";1840                  "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";
1742              }1841              }
1743            }1842            }
n1744            container locators {n1843            leaf locator {
1844              type xr:Cisco-ios-xr-string {
1845                length "1..58" {
1846                  description
1847                    "Specify locator name";
1848                }
1849                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
1850              }
1745              description1851              description
1746                "EVI locator to use for EVPN SID allocation";1852                "EVI locator to use for EVPN SID allocation";
n1747              list locator {n1853            }
1748                key "locator-name";1854            container vpws-single-active-backup-suppression {
1855              presence "Indicates a vpws-single-active-backup-suppression node is configured.";
1749                description1856              description
1750                  "EVI locator to use for EVPN SID allocation";1857                "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";
1751                leaf locator-name {
1752                  type xr:Cisco-ios-xr-string {
1753                    length "1..58" {
1754                      description
1755                        "Specify locator name";
1756                    }
1757                    pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
1758                  }
1759                  description
1760                    "EVI locator to use for EVPN SID allocation";
1761                }
1762                container usid {
1763                  description
1764                    "Configure the uSID wide function knob";
1765                  container allocation {
1766                    description
1767                      "Set the allocation types associated with uSID";
1768                    container wide-local-id-block {
1769                      presence "Indicates a wide-local-id-block node is configured.";
1770                      description
1771                        "Enable uSID wide function knob for the locator";
1772                    }
1773                  }
1774                }
1775              }
1776            }1858            }
1777            container bvi-coupled-mode {1859            container bvi-coupled-mode {
1778              presence "Indicates a bvi-coupled-mode node is configured.";1860              presence "Indicates a bvi-coupled-mode node is configured.";
1779              description1861              description
1780                "Couples BVI state to the core EVPN Instance state";1862                "Couples BVI state to the core EVPN Instance state";
1781            }1863            }
1782          }1864          }
1783        }1865        }
1784      }1866      }
1785      container segment-routing-srv6-stitching {1867      container segment-routing-srv6-stitching {
1786        if-feature "l2vpn_platform_srv6_supported";1868        if-feature "l2vpn_platform_srv6_supported";
1787        description1869        description
1788          "Configure Segment Routing EVPN Instance with SRv6 stitching";1870          "Configure Segment Routing EVPN Instance with SRv6 stitching";
1789        list evi {1871        list evi {
1790          key "vpn-id";1872          key "vpn-id";
1791          description1873          description
1792            "Configure EVPN Instance VPN ID";1874            "Configure EVPN Instance VPN ID";
1793          leaf vpn-id {1875          leaf vpn-id {
1794            type uint32 {1876            type uint32 {
1795              range "1..65534" {1877              range "1..65534" {
1796                description1878                description
1797                  "EVPN Instance VPN ID value";1879                  "EVPN Instance VPN ID value";
1798              }1880              }
1799            }1881            }
1800            description1882            description
1801              "Configure EVPN Instance VPN ID";1883              "Configure EVPN Instance VPN ID";
1802          }1884          }
1803          container bgp {1885          container bgp {
1804            presence "Indicates a bgp node is configured.";1886            presence "Indicates a bgp node is configured.";
1805            description1887            description
1806              "Configure BGP";1888              "Configure BGP";
1807            container rd {1889            container rd {
1808              description1890              description
1809                "Set the Route Distinguisher";1891                "Set the Route Distinguisher";
1810              leaf two-byte-as-number {1892              leaf two-byte-as-number {
1811                type uint32 {1893                type uint32 {
1812                  range "1..65535" {1894                  range "1..65535" {
1813                    description1895                    description
1814                      "Two Byte AS Number";1896                      "Two Byte AS Number";
1815                  }1897                  }
1816                }1898                }
n1817                must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n1899                must "not(../four-byte-as-number or ../ipv4-address)";
1818                description1900                description
1819                  "Two Byte AS Number";1901                  "Two Byte AS Number";
1820              }1902              }
1821              leaf two-byte-as-assigned-number {1903              leaf two-byte-as-assigned-number {
1822                type uint32 {1904                type uint32 {
1823                  range "0..4294967295" {1905                  range "0..4294967295" {
1824                    description1906                    description
1825                      "AS:nn (hex or decimal format)";1907                      "AS:nn (hex or decimal format)";
1826                  }1908                  }
1827                }1909                }
1828                must "../two-byte-as-number";1910                must "../two-byte-as-number";
1829                description1911                description
1830                  "AS:nn (hex or decimal format)";1912                  "AS:nn (hex or decimal format)";
1831              }1913              }
1832              leaf four-byte-as-number {1914              leaf four-byte-as-number {
1833                type uint32 {1915                type uint32 {
1834                  range "65536..4294967295" {1916                  range "65536..4294967295" {
1835                    description1917                    description
1836                      "Four Byte AS number";1918                      "Four Byte AS number";
1837                  }1919                  }
1838                }1920                }
n1839                must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n1921                must "not(../two-byte-as-number or ../ipv4-address)";
1840                description1922                description
1841                  "Four Byte AS number";1923                  "Four Byte AS number";
1842              }1924              }
1843              leaf four-byte-as-assigned-number {1925              leaf four-byte-as-assigned-number {
1844                type uint32 {1926                type uint32 {
1845                  range "0..65535" {1927                  range "0..65535" {
1846                    description1928                    description
1847                      "AS:nn (hex or decimal format)";1929                      "AS:nn (hex or decimal format)";
1848                  }1930                  }
1849                }1931                }
1850                must "../four-byte-as-number";1932                must "../four-byte-as-number";
1851                description1933                description
1852                  "AS:nn (hex or decimal format)";1934                  "AS:nn (hex or decimal format)";
1853              }1935              }
1854              leaf ipv4-address {1936              leaf ipv4-address {
1855                type inet:ipv4-address-no-zone;1937                type inet:ipv4-address-no-zone;
n1856                must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n1938                must "not(../two-byte-as-number or ../four-byte-as-number)";
1857                description1939                description
1858                  "IP address";1940                  "IP address";
1859              }1941              }
1860              leaf ipv4-address-assigned-number {1942              leaf ipv4-address-assigned-number {
1861                type uint32 {1943                type uint32 {
1862                  range "0..65535" {1944                  range "0..65535" {
1863                    description1945                    description
1864                      "IP-address:nn (hex or decimal format)";1946                      "IP-address:nn (hex or decimal format)";
1865                  }1947                  }
1866                }1948                }
1867                must "../ipv4-address";1949                must "../ipv4-address";
1868                description1950                description
1869                  "IP-address:nn (hex or decimal format)";1951                  "IP-address:nn (hex or decimal format)";
1870              }1952              }
1871            }1953            }
1872            container route-target {1954            container route-target {
1873              description1955              description
1874                "Set the Route Target";1956                "Set the Route Target";
1875              container two-byte-as-rts {1957              container two-byte-as-rts {
1876                description1958                description
1877                  "Two Byte AS Number Route Target";1959                  "Two Byte AS Number Route Target";
1878                list two-byte-as-rt {1960                list two-byte-as-rt {
1879                  key "two-byte-as-number assigned-number";1961                  key "two-byte-as-number assigned-number";
1880                  description1962                  description
1881                    "Two Byte AS Number Route Target";1963                    "Two Byte AS Number Route Target";
1882                  leaf two-byte-as-number {1964                  leaf two-byte-as-number {
1883                    type uint32 {1965                    type uint32 {
1884                      range "1..65535";1966                      range "1..65535";
1885                    }1967                    }
1886                    description1968                    description
1887                      "Two Byte AS Number";1969                      "Two Byte AS Number";
1888                  }1970                  }
1889                  leaf assigned-number {1971                  leaf assigned-number {
1890                    type uint32 {1972                    type uint32 {
1891                      range "0..4294967295" {1973                      range "0..4294967295" {
1892                        description1974                        description
1893                          "AS:nn (hex or decimal format)";1975                          "AS:nn (hex or decimal format)";
1894                      }1976                      }
1895                    }1977                    }
1896                    description1978                    description
1897                      "AS:nn (hex or decimal format)";1979                      "AS:nn (hex or decimal format)";
1898                  }1980                  }
1899                }1981                }
1900              }1982              }
1901              container four-byte-as-rts {1983              container four-byte-as-rts {
1902                description1984                description
1903                  "Four Byte AS number Route Target";1985                  "Four Byte AS number Route Target";
1904                list four-byte-as-rt {1986                list four-byte-as-rt {
1905                  key "four-byte-as-number assigned-number";1987                  key "four-byte-as-number assigned-number";
1906                  description1988                  description
1907                    "Four Byte AS number Route Target";1989                    "Four Byte AS number Route Target";
1908                  leaf four-byte-as-number {1990                  leaf four-byte-as-number {
1909                    type uint32 {1991                    type uint32 {
1910                      range "65536..4294967295";1992                      range "65536..4294967295";
1911                    }1993                    }
1912                    description1994                    description
1913                      "Four Byte AS number";1995                      "Four Byte AS number";
1914                  }1996                  }
1915                  leaf assigned-number {1997                  leaf assigned-number {
1916                    type uint32 {1998                    type uint32 {
1917                      range "0..65535" {1999                      range "0..65535" {
1918                        description2000                        description
1919                          "AS:nn (hex or decimal format)";2001                          "AS:nn (hex or decimal format)";
1920                      }2002                      }
1921                    }2003                    }
1922                    description2004                    description
1923                      "AS:nn (hex or decimal format)";2005                      "AS:nn (hex or decimal format)";
1924                  }2006                  }
1925                }2007                }
1926              }2008              }
1927              container ipv4-address-rts {2009              container ipv4-address-rts {
1928                description2010                description
1929                  "IP address Route Target";2011                  "IP address Route Target";
1930                list ipv4-address-rt {2012                list ipv4-address-rt {
1931                  key "ipv4-address assigned-number";2013                  key "ipv4-address assigned-number";
1932                  description2014                  description
1933                    "IP address";2015                    "IP address";
1934                  leaf ipv4-address {2016                  leaf ipv4-address {
1935                    type inet:ipv4-address-no-zone;2017                    type inet:ipv4-address-no-zone;
1936                    description2018                    description
1937                      "IP address";2019                      "IP address";
1938                  }2020                  }
1939                  leaf assigned-number {2021                  leaf assigned-number {
1940                    type uint32 {2022                    type uint32 {
1941                      range "0..65535" {2023                      range "0..65535" {
1942                        description2024                        description
1943                          "IP-address:nn (hex or decimal format)";2025                          "IP-address:nn (hex or decimal format)";
1944                      }2026                      }
1945                    }2027                    }
1946                    description2028                    description
1947                      "IP-address:nn (hex or decimal format)";2029                      "IP-address:nn (hex or decimal format)";
1948                  }2030                  }
1949                }2031                }
1950              }2032              }
1951              container none {2033              container none {
1952                presence "Indicates a none node is configured.";2034                presence "Indicates a none node is configured.";
1953                description2035                description
1954                  "Withhold BGP RTs";2036                  "Withhold BGP RTs";
1955              }2037              }
1956              container import {2038              container import {
1957                description2039                description
1958                  "Import Route Target";2040                  "Import Route Target";
1959                container two-byte-as-rts {2041                container two-byte-as-rts {
1960                  description2042                  description
1961                    "Two Byte AS Number Route Target";2043                    "Two Byte AS Number Route Target";
1962                  list two-byte-as-rt {2044                  list two-byte-as-rt {
1963                    key "two-byte-as-number assigned-number";2045                    key "two-byte-as-number assigned-number";
1964                    description2046                    description
1965                      "Two Byte AS Number Route Target";2047                      "Two Byte AS Number Route Target";
1966                    leaf two-byte-as-number {2048                    leaf two-byte-as-number {
1967                      type uint32 {2049                      type uint32 {
1968                        range "1..65535";2050                        range "1..65535";
1969                      }2051                      }
1970                      description2052                      description
1971                        "Two Byte AS Number";2053                        "Two Byte AS Number";
1972                    }2054                    }
1973                    leaf assigned-number {2055                    leaf assigned-number {
1974                      type uint32 {2056                      type uint32 {
1975                        range "0..4294967295" {2057                        range "0..4294967295" {
1976                          description2058                          description
1977                            "AS:nn (hex or decimal format)";2059                            "AS:nn (hex or decimal format)";
1978                        }2060                        }
1979                      }2061                      }
1980                      description2062                      description
1981                        "AS:nn (hex or decimal format)";2063                        "AS:nn (hex or decimal format)";
1982                    }2064                    }
1983                  }2065                  }
1984                }2066                }
1985                container four-byte-as-rts {2067                container four-byte-as-rts {
1986                  description2068                  description
1987                    "Four Byte AS number Route Target";2069                    "Four Byte AS number Route Target";
1988                  list four-byte-as-rt {2070                  list four-byte-as-rt {
1989                    key "four-byte-as-number assigned-number";2071                    key "four-byte-as-number assigned-number";
1990                    description2072                    description
1991                      "Four Byte AS number Route Target";2073                      "Four Byte AS number Route Target";
1992                    leaf four-byte-as-number {2074                    leaf four-byte-as-number {
1993                      type uint32 {2075                      type uint32 {
1994                        range "65536..4294967295";2076                        range "65536..4294967295";
1995                      }2077                      }
1996                      description2078                      description
1997                        "Four Byte AS number";2079                        "Four Byte AS number";
1998                    }2080                    }
1999                    leaf assigned-number {2081                    leaf assigned-number {
2000                      type uint32 {2082                      type uint32 {
2001                        range "0..65535" {2083                        range "0..65535" {
2002                          description2084                          description
2003                            "AS:nn (hex or decimal format)";2085                            "AS:nn (hex or decimal format)";
2004                        }2086                        }
2005                      }2087                      }
2006                      description2088                      description
2007                        "AS:nn (hex or decimal format)";2089                        "AS:nn (hex or decimal format)";
2008                    }2090                    }
2009                  }2091                  }
2010                }2092                }
2011                container ipv4-address-rts {2093                container ipv4-address-rts {
2012                  description2094                  description
2013                    "IP address Route Target";2095                    "IP address Route Target";
2014                  list ipv4-address-rt {2096                  list ipv4-address-rt {
2015                    key "ipv4-address assigned-number";2097                    key "ipv4-address assigned-number";
2016                    description2098                    description
2017                      "IP address";2099                      "IP address";
2018                    leaf ipv4-address {2100                    leaf ipv4-address {
2019                      type inet:ipv4-address-no-zone;2101                      type inet:ipv4-address-no-zone;
2020                      description2102                      description
2021                        "IP address";2103                        "IP address";
2022                    }2104                    }
2023                    leaf assigned-number {2105                    leaf assigned-number {
2024                      type uint32 {2106                      type uint32 {
2025                        range "0..65535" {2107                        range "0..65535" {
2026                          description2108                          description
2027                            "IP-address:nn (hex or decimal format)";2109                            "IP-address:nn (hex or decimal format)";
2028                        }2110                        }
2029                      }2111                      }
2030                      description2112                      description
2031                        "IP-address:nn (hex or decimal format)";2113                        "IP-address:nn (hex or decimal format)";
2032                    }2114                    }
2033                  }2115                  }
2034                }2116                }
2035                container none {2117                container none {
2036                  presence "Indicates a none node is configured.";2118                  presence "Indicates a none node is configured.";
2037                  description2119                  description
2038                    "Withhold BGP RTs";2120                    "Withhold BGP RTs";
2039                }2121                }
2040              }2122              }
2041              container export {2123              container export {
2042                description2124                description
2043                  "Export Route Target";2125                  "Export Route Target";
2044                container two-byte-as-rts {2126                container two-byte-as-rts {
2045                  description2127                  description
2046                    "Two Byte AS Number Route Target";2128                    "Two Byte AS Number Route Target";
2047                  list two-byte-as-rt {2129                  list two-byte-as-rt {
2048                    key "two-byte-as-number assigned-number";2130                    key "two-byte-as-number assigned-number";
2049                    description2131                    description
2050                      "Two Byte AS Number Route Target";2132                      "Two Byte AS Number Route Target";
2051                    leaf two-byte-as-number {2133                    leaf two-byte-as-number {
2052                      type uint32 {2134                      type uint32 {
2053                        range "1..65535";2135                        range "1..65535";
2054                      }2136                      }
2055                      description2137                      description
2056                        "Two Byte AS Number";2138                        "Two Byte AS Number";
2057                    }2139                    }
2058                    leaf assigned-number {2140                    leaf assigned-number {
2059                      type uint32 {2141                      type uint32 {
2060                        range "0..4294967295" {2142                        range "0..4294967295" {
2061                          description2143                          description
2062                            "AS:nn (hex or decimal format)";2144                            "AS:nn (hex or decimal format)";
2063                        }2145                        }
2064                      }2146                      }
2065                      description2147                      description
2066                        "AS:nn (hex or decimal format)";2148                        "AS:nn (hex or decimal format)";
2067                    }2149                    }
2068                  }2150                  }
2069                }2151                }
2070                container four-byte-as-rts {2152                container four-byte-as-rts {
2071                  description2153                  description
2072                    "Four Byte AS number Route Target";2154                    "Four Byte AS number Route Target";
2073                  list four-byte-as-rt {2155                  list four-byte-as-rt {
2074                    key "four-byte-as-number assigned-number";2156                    key "four-byte-as-number assigned-number";
2075                    description2157                    description
2076                      "Four Byte AS number Route Target";2158                      "Four Byte AS number Route Target";
2077                    leaf four-byte-as-number {2159                    leaf four-byte-as-number {
2078                      type uint32 {2160                      type uint32 {
2079                        range "65536..4294967295";2161                        range "65536..4294967295";
2080                      }2162                      }
2081                      description2163                      description
2082                        "Four Byte AS number";2164                        "Four Byte AS number";
2083                    }2165                    }
2084                    leaf assigned-number {2166                    leaf assigned-number {
2085                      type uint32 {2167                      type uint32 {
2086                        range "0..65535" {2168                        range "0..65535" {
2087                          description2169                          description
2088                            "AS:nn (hex or decimal format)";2170                            "AS:nn (hex or decimal format)";
2089                        }2171                        }
2090                      }2172                      }
2091                      description2173                      description
2092                        "AS:nn (hex or decimal format)";2174                        "AS:nn (hex or decimal format)";
2093                    }2175                    }
2094                  }2176                  }
2095                }2177                }
2096                container ipv4-address-rts {2178                container ipv4-address-rts {
2097                  description2179                  description
2098                    "IP address Route Target";2180                    "IP address Route Target";
2099                  list ipv4-address-rt {2181                  list ipv4-address-rt {
2100                    key "ipv4-address assigned-number";2182                    key "ipv4-address assigned-number";
2101                    description2183                    description
2102                      "IP address";2184                      "IP address";
2103                    leaf ipv4-address {2185                    leaf ipv4-address {
2104                      type inet:ipv4-address-no-zone;2186                      type inet:ipv4-address-no-zone;
2105                      description2187                      description
2106                        "IP address";2188                        "IP address";
2107                    }2189                    }
2108                    leaf assigned-number {2190                    leaf assigned-number {
2109                      type uint32 {2191                      type uint32 {
2110                        range "0..65535" {2192                        range "0..65535" {
2111                          description2193                          description
2112                            "IP-address:nn (hex or decimal format)";2194                            "IP-address:nn (hex or decimal format)";
2113                        }2195                        }
2114                      }2196                      }
2115                      description2197                      description
2116                        "IP-address:nn (hex or decimal format)";2198                        "IP-address:nn (hex or decimal format)";
2117                    }2199                    }
2118                  }2200                  }
2119                }2201                }
2120                container none {2202                container none {
2121                  presence "Indicates a none node is configured.";2203                  presence "Indicates a none node is configured.";
2122                  description2204                  description
2123                    "Withhold BGP RTs";2205                    "Withhold BGP RTs";
2124                }2206                }
2125              }2207              }
2126            }2208            }
2127            leaf table-policy {2209            leaf table-policy {
2128              type xr:Route-policy-name;2210              type xr:Route-policy-name;
2129              description2211              description
2130                "Configure policy for installation of forwarding data to L2FIB";2212                "Configure policy for installation of forwarding data to L2FIB";
2131            }2213            }
2132            container implicit-import-disable {2214            container implicit-import-disable {
2133              presence "Indicates a implicit-import-disable node is configured.";2215              presence "Indicates a implicit-import-disable node is configured.";
2134              description2216              description
2135                "Disable BGP implicit import";2217                "Disable BGP implicit import";
2136            }2218            }
2137            container route-policy {2219            container route-policy {
2138              description2220              description
2139                "Apply route policy";2221                "Apply route policy";
2140              leaf export {2222              leaf export {
2141                type xr:Route-policy-name;2223                type xr:Route-policy-name;
2142                description2224                description
2143                  "Export route policy";2225                  "Export route policy";
2144              }2226              }
2145              leaf import {2227              leaf import {
2146                type xr:Route-policy-name;2228                type xr:Route-policy-name;
2147                description2229                description
2148                  "Import route policy";2230                  "Import route policy";
2149              }2231              }
2150            }2232            }
2151          }2233          }
2152          leaf description {2234          leaf description {
2153            type string {2235            type string {
2154              length "1..1024" {2236              length "1..1024" {
2155                description2237                description
2156                  "EVPN Instance description string";2238                  "EVPN Instance description string";
2157              }2239              }
2158            }2240            }
2159            description2241            description
2160              "Description for this EVPN Instance";2242              "Description for this EVPN Instance";
2161          }2243          }
2162          container preferred-nexthop {2244          container preferred-nexthop {
2163            description2245            description
2164              "Elect unique active path from ECMP candidate list";2246              "Elect unique active path from ECMP candidate list";
2165            container lowest-ip {2247            container lowest-ip {
2166              must "not(../highest-ip or ../modulo)";2248              must "not(../highest-ip or ../modulo)";
2167              presence "Indicates a lowest-ip node is configured.";2249              presence "Indicates a lowest-ip node is configured.";
2168              description2250              description
2169                "Lowest nexthop IP is active";2251                "Lowest nexthop IP is active";
2170            }2252            }
2171            container highest-ip {2253            container highest-ip {
2172              must "not(../lowest-ip or ../modulo)";2254              must "not(../lowest-ip or ../modulo)";
2173              presence "Indicates a highest-ip node is configured.";2255              presence "Indicates a highest-ip node is configured.";
2174              description2256              description
2175                "Highest nexthop IP is active";2257                "Highest nexthop IP is active";
2176            }2258            }
2177            container modulo {2259            container modulo {
2178              must "not(../lowest-ip or ../highest-ip)";2260              must "not(../lowest-ip or ../highest-ip)";
2179              presence "Indicates a modulo node is configured.";2261              presence "Indicates a modulo node is configured.";
2180              description2262              description
2181                "EVI modulo of nexthops cardinality is active";2263                "EVI modulo of nexthops cardinality is active";
2182            }2264            }
2183          }2265          }
2184          container advertise-mac {2266          container advertise-mac {
2185            presence "Indicates a advertise-mac node is configured.";2267            presence "Indicates a advertise-mac node is configured.";
2186            description2268            description
2187              "Configure locally-learned MAC advertisement";2269              "Configure locally-learned MAC advertisement";
2188            container bvi-mac {2270            container bvi-mac {
2189              presence "Indicates a bvi-mac node is configured.";2271              presence "Indicates a bvi-mac node is configured.";
2190              description2272              description
2191                "Advertise local MAC and BVI MAC routes";2273                "Advertise local MAC and BVI MAC routes";
2192            }2274            }
2193          }2275          }
2194          container unknown-unicast-suppression {2276          container unknown-unicast-suppression {
2195            presence "Indicates a unknown-unicast-suppression node is configured.";2277            presence "Indicates a unknown-unicast-suppression node is configured.";
2196            description2278            description
2197              "Enabling unknown unicast suppression";2279              "Enabling unknown unicast suppression";
2198          }2280          }
2199          container ignore-mtu-mismatch {2281          container ignore-mtu-mismatch {
2200            presence "Indicates a ignore-mtu-mismatch node is configured.";2282            presence "Indicates a ignore-mtu-mismatch node is configured.";
2201            description2283            description
2202              "Ignore mismatch of local and remote MTUs";2284              "Ignore mismatch of local and remote MTUs";
2203            container disable {2285            container disable {
2204              presence "Indicates a disable node is configured.";2286              presence "Indicates a disable node is configured.";
2205              description2287              description
2206                "Disables ingoring mismatch of local and remote MTUs";2288                "Disables ingoring mismatch of local and remote MTUs";
2207            }2289            }
2208          }2290          }
2209          container transmit-mtu-zero {2291          container transmit-mtu-zero {
2210            presence "Indicates a transmit-mtu-zero node is configured.";2292            presence "Indicates a transmit-mtu-zero node is configured.";
2211            description2293            description
2212              "Transmit MTU zero to remote instead of actual local MTU";2294              "Transmit MTU zero to remote instead of actual local MTU";
2213            container disable {2295            container disable {
2214              presence "Indicates a disable node is configured.";2296              presence "Indicates a disable node is configured.";
2215              description2297              description
2216                "Disables transmitting MTU zero to remote instead of actual local MTU";2298                "Disables transmitting MTU zero to remote instead of actual local MTU";
2217            }2299            }
2218          }2300          }
2219          container re-origination-disable {2301          container re-origination-disable {
2220            presence "Indicates a re-origination-disable node is configured.";2302            presence "Indicates a re-origination-disable node is configured.";
2221            description2303            description
2222              "Disable route re-origination";2304              "Disable route re-origination";
2223          }2305          }
2224          leaf locator {2306          leaf locator {
2225            type xr:Cisco-ios-xr-string {2307            type xr:Cisco-ios-xr-string {
2226              length "1..58" {2308              length "1..58" {
2227                description2309                description
2228                  "Specify locator name";2310                  "Specify locator name";
2229              }2311              }
2230              pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";2312              pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
2231            }2313            }
2232            description2314            description
2233              "EVI locator to use for EVPN SID allocation";2315              "EVI locator to use for EVPN SID allocation";
2234          }2316          }
2235        }2317        }
2236      }2318      }
2237      container stitching {2319      container stitching {
2238        description2320        description
2239          "Treat EVPN Instance as Stitching side";2321          "Treat EVPN Instance as Stitching side";
2240        list evi {2322        list evi {
2241          key "vpn-id";2323          key "vpn-id";
2242          description2324          description
2243            "Configure EVPN Instance VPN ID";2325            "Configure EVPN Instance VPN ID";
2244          leaf vpn-id {2326          leaf vpn-id {
2245            type uint32 {2327            type uint32 {
2246              range "1..65534" {2328              range "1..65534" {
2247                description2329                description
2248                  "EVPN Instance VPN ID value";2330                  "EVPN Instance VPN ID value";
2249              }2331              }
2250            }2332            }
2251            description2333            description
2252              "Configure EVPN Instance VPN ID";2334              "Configure EVPN Instance VPN ID";
2253          }2335          }
2254          container bgp {2336          container bgp {
2255            presence "Indicates a bgp node is configured.";2337            presence "Indicates a bgp node is configured.";
2256            description2338            description
2257              "Configure BGP";2339              "Configure BGP";
2258            container rd {2340            container rd {
2259              description2341              description
2260                "Set the Route Distinguisher";2342                "Set the Route Distinguisher";
2261              leaf two-byte-as-number {2343              leaf two-byte-as-number {
2262                type uint32 {2344                type uint32 {
2263                  range "1..65535" {2345                  range "1..65535" {
2264                    description2346                    description
2265                      "Two Byte AS Number";2347                      "Two Byte AS Number";
2266                  }2348                  }
2267                }2349                }
n2268                must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n2350                must "not(../four-byte-as-number or ../ipv4-address)";
2269                description2351                description
2270                  "Two Byte AS Number";2352                  "Two Byte AS Number";
2271              }2353              }
2272              leaf two-byte-as-assigned-number {2354              leaf two-byte-as-assigned-number {
2273                type uint32 {2355                type uint32 {
2274                  range "0..4294967295" {2356                  range "0..4294967295" {
2275                    description2357                    description
2276                      "AS:nn (hex or decimal format)";2358                      "AS:nn (hex or decimal format)";
2277                  }2359                  }
2278                }2360                }
2279                must "../two-byte-as-number";2361                must "../two-byte-as-number";
2280                description2362                description
2281                  "AS:nn (hex or decimal format)";2363                  "AS:nn (hex or decimal format)";
2282              }2364              }
2283              leaf four-byte-as-number {2365              leaf four-byte-as-number {
2284                type uint32 {2366                type uint32 {
2285                  range "65536..4294967295" {2367                  range "65536..4294967295" {
2286                    description2368                    description
2287                      "Four Byte AS number";2369                      "Four Byte AS number";
2288                  }2370                  }
2289                }2371                }
n2290                must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n2372                must "not(../two-byte-as-number or ../ipv4-address)";
2291                description2373                description
2292                  "Four Byte AS number";2374                  "Four Byte AS number";
2293              }2375              }
2294              leaf four-byte-as-assigned-number {2376              leaf four-byte-as-assigned-number {
2295                type uint32 {2377                type uint32 {
2296                  range "0..65535" {2378                  range "0..65535" {
2297                    description2379                    description
2298                      "AS:nn (hex or decimal format)";2380                      "AS:nn (hex or decimal format)";
2299                  }2381                  }
2300                }2382                }
2301                must "../four-byte-as-number";2383                must "../four-byte-as-number";
2302                description2384                description
2303                  "AS:nn (hex or decimal format)";2385                  "AS:nn (hex or decimal format)";
2304              }2386              }
2305              leaf ipv4-address {2387              leaf ipv4-address {
2306                type inet:ipv4-address-no-zone;2388                type inet:ipv4-address-no-zone;
n2307                must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n2389                must "not(../two-byte-as-number or ../four-byte-as-number)";
2308                description2390                description
2309                  "IP address";2391                  "IP address";
2310              }2392              }
2311              leaf ipv4-address-assigned-number {2393              leaf ipv4-address-assigned-number {
2312                type uint32 {2394                type uint32 {
2313                  range "0..65535" {2395                  range "0..65535" {
2314                    description2396                    description
2315                      "IP-address:nn (hex or decimal format)";2397                      "IP-address:nn (hex or decimal format)";
2316                  }2398                  }
2317                }2399                }
2318                must "../ipv4-address";2400                must "../ipv4-address";
2319                description2401                description
2320                  "IP-address:nn (hex or decimal format)";2402                  "IP-address:nn (hex or decimal format)";
2321              }2403              }
2322            }2404            }
2323            container route-target {2405            container route-target {
2324              description2406              description
2325                "Set the Route Target";2407                "Set the Route Target";
2326              container two-byte-as-rts {2408              container two-byte-as-rts {
2327                description2409                description
2328                  "Two Byte AS Number Route Target";2410                  "Two Byte AS Number Route Target";
2329                list two-byte-as-rt {2411                list two-byte-as-rt {
2330                  key "two-byte-as-number assigned-number";2412                  key "two-byte-as-number assigned-number";
2331                  description2413                  description
2332                    "Two Byte AS Number Route Target";2414                    "Two Byte AS Number Route Target";
2333                  leaf two-byte-as-number {2415                  leaf two-byte-as-number {
2334                    type uint32 {2416                    type uint32 {
2335                      range "1..65535";2417                      range "1..65535";
2336                    }2418                    }
2337                    description2419                    description
2338                      "Two Byte AS Number";2420                      "Two Byte AS Number";
2339                  }2421                  }
2340                  leaf assigned-number {2422                  leaf assigned-number {
2341                    type uint32 {2423                    type uint32 {
2342                      range "0..4294967295" {2424                      range "0..4294967295" {
2343                        description2425                        description
2344                          "AS:nn (hex or decimal format)";2426                          "AS:nn (hex or decimal format)";
2345                      }2427                      }
2346                    }2428                    }
2347                    description2429                    description
2348                      "AS:nn (hex or decimal format)";2430                      "AS:nn (hex or decimal format)";
2349                  }2431                  }
2350                }2432                }
2351              }2433              }
2352              container four-byte-as-rts {2434              container four-byte-as-rts {
2353                description2435                description
2354                  "Four Byte AS number Route Target";2436                  "Four Byte AS number Route Target";
2355                list four-byte-as-rt {2437                list four-byte-as-rt {
2356                  key "four-byte-as-number assigned-number";2438                  key "four-byte-as-number assigned-number";
2357                  description2439                  description
2358                    "Four Byte AS number Route Target";2440                    "Four Byte AS number Route Target";
2359                  leaf four-byte-as-number {2441                  leaf four-byte-as-number {
2360                    type uint32 {2442                    type uint32 {
2361                      range "65536..4294967295";2443                      range "65536..4294967295";
2362                    }2444                    }
2363                    description2445                    description
2364                      "Four Byte AS number";2446                      "Four Byte AS number";
2365                  }2447                  }
2366                  leaf assigned-number {2448                  leaf assigned-number {
2367                    type uint32 {2449                    type uint32 {
2368                      range "0..65535" {2450                      range "0..65535" {
2369                        description2451                        description
2370                          "AS:nn (hex or decimal format)";2452                          "AS:nn (hex or decimal format)";
2371                      }2453                      }
2372                    }2454                    }
2373                    description2455                    description
2374                      "AS:nn (hex or decimal format)";2456                      "AS:nn (hex or decimal format)";
2375                  }2457                  }
2376                }2458                }
2377              }2459              }
2378              container ipv4-address-rts {2460              container ipv4-address-rts {
2379                description2461                description
2380                  "IP address Route Target";2462                  "IP address Route Target";
2381                list ipv4-address-rt {2463                list ipv4-address-rt {
2382                  key "ipv4-address assigned-number";2464                  key "ipv4-address assigned-number";
2383                  description2465                  description
2384                    "IP address";2466                    "IP address";
2385                  leaf ipv4-address {2467                  leaf ipv4-address {
2386                    type inet:ipv4-address-no-zone;2468                    type inet:ipv4-address-no-zone;
2387                    description2469                    description
2388                      "IP address";2470                      "IP address";
2389                  }2471                  }
2390                  leaf assigned-number {2472                  leaf assigned-number {
2391                    type uint32 {2473                    type uint32 {
2392                      range "0..65535" {2474                      range "0..65535" {
2393                        description2475                        description
2394                          "IP-address:nn (hex or decimal format)";2476                          "IP-address:nn (hex or decimal format)";
2395                      }2477                      }
2396                    }2478                    }
2397                    description2479                    description
2398                      "IP-address:nn (hex or decimal format)";2480                      "IP-address:nn (hex or decimal format)";
2399                  }2481                  }
2400                }2482                }
2401              }2483              }
2402              container none {2484              container none {
2403                presence "Indicates a none node is configured.";2485                presence "Indicates a none node is configured.";
2404                description2486                description
2405                  "Withhold BGP RTs";2487                  "Withhold BGP RTs";
2406              }2488              }
2407              container import {2489              container import {
2408                description2490                description
2409                  "Import Route Target";2491                  "Import Route Target";
2410                container two-byte-as-rts {2492                container two-byte-as-rts {
2411                  description2493                  description
2412                    "Two Byte AS Number Route Target";2494                    "Two Byte AS Number Route Target";
2413                  list two-byte-as-rt {2495                  list two-byte-as-rt {
2414                    key "two-byte-as-number assigned-number";2496                    key "two-byte-as-number assigned-number";
2415                    description2497                    description
2416                      "Two Byte AS Number Route Target";2498                      "Two Byte AS Number Route Target";
2417                    leaf two-byte-as-number {2499                    leaf two-byte-as-number {
2418                      type uint32 {2500                      type uint32 {
2419                        range "1..65535";2501                        range "1..65535";
2420                      }2502                      }
2421                      description2503                      description
2422                        "Two Byte AS Number";2504                        "Two Byte AS Number";
2423                    }2505                    }
2424                    leaf assigned-number {2506                    leaf assigned-number {
2425                      type uint32 {2507                      type uint32 {
2426                        range "0..4294967295" {2508                        range "0..4294967295" {
2427                          description2509                          description
2428                            "AS:nn (hex or decimal format)";2510                            "AS:nn (hex or decimal format)";
2429                        }2511                        }
2430                      }2512                      }
2431                      description2513                      description
2432                        "AS:nn (hex or decimal format)";2514                        "AS:nn (hex or decimal format)";
2433                    }2515                    }
2434                  }2516                  }
2435                }2517                }
2436                container four-byte-as-rts {2518                container four-byte-as-rts {
2437                  description2519                  description
2438                    "Four Byte AS number Route Target";2520                    "Four Byte AS number Route Target";
2439                  list four-byte-as-rt {2521                  list four-byte-as-rt {
2440                    key "four-byte-as-number assigned-number";2522                    key "four-byte-as-number assigned-number";
2441                    description2523                    description
2442                      "Four Byte AS number Route Target";2524                      "Four Byte AS number Route Target";
2443                    leaf four-byte-as-number {2525                    leaf four-byte-as-number {
2444                      type uint32 {2526                      type uint32 {
2445                        range "65536..4294967295";2527                        range "65536..4294967295";
2446                      }2528                      }
2447                      description2529                      description
2448                        "Four Byte AS number";2530                        "Four Byte AS number";
2449                    }2531                    }
2450                    leaf assigned-number {2532                    leaf assigned-number {
2451                      type uint32 {2533                      type uint32 {
2452                        range "0..65535" {2534                        range "0..65535" {
2453                          description2535                          description
2454                            "AS:nn (hex or decimal format)";2536                            "AS:nn (hex or decimal format)";
2455                        }2537                        }
2456                      }2538                      }
2457                      description2539                      description
2458                        "AS:nn (hex or decimal format)";2540                        "AS:nn (hex or decimal format)";
2459                    }2541                    }
2460                  }2542                  }
2461                }2543                }
2462                container ipv4-address-rts {2544                container ipv4-address-rts {
2463                  description2545                  description
2464                    "IP address Route Target";2546                    "IP address Route Target";
2465                  list ipv4-address-rt {2547                  list ipv4-address-rt {
2466                    key "ipv4-address assigned-number";2548                    key "ipv4-address assigned-number";
2467                    description2549                    description
2468                      "IP address";2550                      "IP address";
2469                    leaf ipv4-address {2551                    leaf ipv4-address {
2470                      type inet:ipv4-address-no-zone;2552                      type inet:ipv4-address-no-zone;
2471                      description2553                      description
2472                        "IP address";2554                        "IP address";
2473                    }2555                    }
2474                    leaf assigned-number {2556                    leaf assigned-number {
2475                      type uint32 {2557                      type uint32 {
2476                        range "0..65535" {2558                        range "0..65535" {
2477                          description2559                          description
2478                            "IP-address:nn (hex or decimal format)";2560                            "IP-address:nn (hex or decimal format)";
2479                        }2561                        }
2480                      }2562                      }
2481                      description2563                      description
2482                        "IP-address:nn (hex or decimal format)";2564                        "IP-address:nn (hex or decimal format)";
2483                    }2565                    }
2484                  }2566                  }
2485                }2567                }
2486                container none {2568                container none {
2487                  presence "Indicates a none node is configured.";2569                  presence "Indicates a none node is configured.";
2488                  description2570                  description
2489                    "Withhold BGP RTs";2571                    "Withhold BGP RTs";
2490                }2572                }
2491              }2573              }
2492              container export {2574              container export {
2493                description2575                description
2494                  "Export Route Target";2576                  "Export Route Target";
2495                container two-byte-as-rts {2577                container two-byte-as-rts {
2496                  description2578                  description
2497                    "Two Byte AS Number Route Target";2579                    "Two Byte AS Number Route Target";
2498                  list two-byte-as-rt {2580                  list two-byte-as-rt {
2499                    key "two-byte-as-number assigned-number";2581                    key "two-byte-as-number assigned-number";
2500                    description2582                    description
2501                      "Two Byte AS Number Route Target";2583                      "Two Byte AS Number Route Target";
2502                    leaf two-byte-as-number {2584                    leaf two-byte-as-number {
2503                      type uint32 {2585                      type uint32 {
2504                        range "1..65535";2586                        range "1..65535";
2505                      }2587                      }
2506                      description2588                      description
2507                        "Two Byte AS Number";2589                        "Two Byte AS Number";
2508                    }2590                    }
2509                    leaf assigned-number {2591                    leaf assigned-number {
2510                      type uint32 {2592                      type uint32 {
2511                        range "0..4294967295" {2593                        range "0..4294967295" {
2512                          description2594                          description
2513                            "AS:nn (hex or decimal format)";2595                            "AS:nn (hex or decimal format)";
2514                        }2596                        }
2515                      }2597                      }
2516                      description2598                      description
2517                        "AS:nn (hex or decimal format)";2599                        "AS:nn (hex or decimal format)";
2518                    }2600                    }
2519                  }2601                  }
2520                }2602                }
2521                container four-byte-as-rts {2603                container four-byte-as-rts {
2522                  description2604                  description
2523                    "Four Byte AS number Route Target";2605                    "Four Byte AS number Route Target";
2524                  list four-byte-as-rt {2606                  list four-byte-as-rt {
2525                    key "four-byte-as-number assigned-number";2607                    key "four-byte-as-number assigned-number";
2526                    description2608                    description
2527                      "Four Byte AS number Route Target";2609                      "Four Byte AS number Route Target";
2528                    leaf four-byte-as-number {2610                    leaf four-byte-as-number {
2529                      type uint32 {2611                      type uint32 {
2530                        range "65536..4294967295";2612                        range "65536..4294967295";
2531                      }2613                      }
2532                      description2614                      description
2533                        "Four Byte AS number";2615                        "Four Byte AS number";
2534                    }2616                    }
2535                    leaf assigned-number {2617                    leaf assigned-number {
2536                      type uint32 {2618                      type uint32 {
2537                        range "0..65535" {2619                        range "0..65535" {
2538                          description2620                          description
2539                            "AS:nn (hex or decimal format)";2621                            "AS:nn (hex or decimal format)";
2540                        }2622                        }
2541                      }2623                      }
2542                      description2624                      description
2543                        "AS:nn (hex or decimal format)";2625                        "AS:nn (hex or decimal format)";
2544                    }2626                    }
2545                  }2627                  }
2546                }2628                }
2547                container ipv4-address-rts {2629                container ipv4-address-rts {
2548                  description2630                  description
2549                    "IP address Route Target";2631                    "IP address Route Target";
2550                  list ipv4-address-rt {2632                  list ipv4-address-rt {
2551                    key "ipv4-address assigned-number";2633                    key "ipv4-address assigned-number";
2552                    description2634                    description
2553                      "IP address";2635                      "IP address";
2554                    leaf ipv4-address {2636                    leaf ipv4-address {
2555                      type inet:ipv4-address-no-zone;2637                      type inet:ipv4-address-no-zone;
2556                      description2638                      description
2557                        "IP address";2639                        "IP address";
2558                    }2640                    }
2559                    leaf assigned-number {2641                    leaf assigned-number {
2560                      type uint32 {2642                      type uint32 {
2561                        range "0..65535" {2643                        range "0..65535" {
2562                          description2644                          description
2563                            "IP-address:nn (hex or decimal format)";2645                            "IP-address:nn (hex or decimal format)";
2564                        }2646                        }
2565                      }2647                      }
2566                      description2648                      description
2567                        "IP-address:nn (hex or decimal format)";2649                        "IP-address:nn (hex or decimal format)";
2568                    }2650                    }
2569                  }2651                  }
2570                }2652                }
2571                container none {2653                container none {
2572                  presence "Indicates a none node is configured.";2654                  presence "Indicates a none node is configured.";
2573                  description2655                  description
2574                    "Withhold BGP RTs";2656                    "Withhold BGP RTs";
2575                }2657                }
2576              }2658              }
2577            }2659            }
2578            leaf table-policy {2660            leaf table-policy {
2579              type xr:Route-policy-name;2661              type xr:Route-policy-name;
2580              description2662              description
2581                "Configure policy for installation of forwarding data to L2FIB";2663                "Configure policy for installation of forwarding data to L2FIB";
2582            }2664            }
2583            container implicit-import-disable {2665            container implicit-import-disable {
2584              presence "Indicates a implicit-import-disable node is configured.";2666              presence "Indicates a implicit-import-disable node is configured.";
2585              description2667              description
2586                "Disable BGP implicit import";2668                "Disable BGP implicit import";
2587            }2669            }
2588            container route-policy {2670            container route-policy {
2589              description2671              description
2590                "Apply route policy";2672                "Apply route policy";
2591              leaf export {2673              leaf export {
2592                type xr:Route-policy-name;2674                type xr:Route-policy-name;
2593                description2675                description
2594                  "Export route policy";2676                  "Export route policy";
2595              }2677              }
2596              leaf import {2678              leaf import {
2597                type xr:Route-policy-name;2679                type xr:Route-policy-name;
2598                description2680                description
2599                  "Import route policy";2681                  "Import route policy";
2600              }2682              }
2601            }2683            }
2602          }2684          }
2603          leaf description {2685          leaf description {
2604            type string {2686            type string {
2605              length "1..64" {2687              length "1..64" {
2606                description2688                description
2607                  "EVPN Instance description string";2689                  "EVPN Instance description string";
2608              }2690              }
2609            }2691            }
2610            description2692            description
2611              "Description for this EVPN Instance";2693              "Description for this EVPN Instance";
2612          }2694          }
2613          container load-balancing {2695          container load-balancing {
2614            presence "Indicates a load-balancing node is configured.";2696            presence "Indicates a load-balancing node is configured.";
2615            description2697            description
2616              "Configure EVPN Instance load-balancing";2698              "Configure EVPN Instance load-balancing";
2617            container flow-label {2699            container flow-label {
2618              description2700              description
2619                "Flow Label load balancing";2701                "Flow Label load balancing";
2620              container static {2702              container static {
2621                presence "Indicates a static node is configured.";2703                presence "Indicates a static node is configured.";
2622                description2704                description
2623                  "Static configuration of Flow Label";2705                  "Static configuration of Flow Label";
2624              }2706              }
2625            }2707            }
2626          }2708          }
2627          container ecmp-disable-deprecated {2709          container ecmp-disable-deprecated {
2628            presence "Indicates a ecmp-disable-deprecated node is configured.";2710            presence "Indicates a ecmp-disable-deprecated node is configured.";
2629            description2711            description
2630              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";2712              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
2631          }2713          }
2632          container preferred-nexthop {2714          container preferred-nexthop {
2633            description2715            description
2634              "Elect unique active path from ECMP candidate list";2716              "Elect unique active path from ECMP candidate list";
2635            container lowest-ip {2717            container lowest-ip {
2636              must "not(../highest-ip or ../modulo)";2718              must "not(../highest-ip or ../modulo)";
2637              presence "Indicates a lowest-ip node is configured.";2719              presence "Indicates a lowest-ip node is configured.";
2638              description2720              description
2639                "Lowest nexthop IP is active";2721                "Lowest nexthop IP is active";
2640            }2722            }
2641            container highest-ip {2723            container highest-ip {
2642              must "not(../lowest-ip or ../modulo)";2724              must "not(../lowest-ip or ../modulo)";
2643              presence "Indicates a highest-ip node is configured.";2725              presence "Indicates a highest-ip node is configured.";
2644              description2726              description
2645                "Highest nexthop IP is active";2727                "Highest nexthop IP is active";
2646            }2728            }
2647            container modulo {2729            container modulo {
2648              must "not(../lowest-ip or ../highest-ip)";2730              must "not(../lowest-ip or ../highest-ip)";
2649              presence "Indicates a modulo node is configured.";2731              presence "Indicates a modulo node is configured.";
2650              description2732              description
2651                "EVI modulo of nexthops cardinality is active";2733                "EVI modulo of nexthops cardinality is active";
2652            }2734            }
2653          }2735          }
2654          container advertise-mac {2736          container advertise-mac {
2655            presence "Indicates a advertise-mac node is configured.";2737            presence "Indicates a advertise-mac node is configured.";
2656            description2738            description
2657              "Configure EVPN Instance MAC advertisement";2739              "Configure EVPN Instance MAC advertisement";
2658            container bvi-mac {2740            container bvi-mac {
2659              presence "Indicates a bvi-mac node is configured.";2741              presence "Indicates a bvi-mac node is configured.";
2660              description2742              description
2661                "Advertise local MAC and BVI MAC routes";2743                "Advertise local MAC and BVI MAC routes";
2662            }2744            }
2663          }2745          }
2664          container unknown-unicast-suppression {2746          container unknown-unicast-suppression {
2665            presence "Indicates a unknown-unicast-suppression node is configured.";2747            presence "Indicates a unknown-unicast-suppression node is configured.";
2666            description2748            description
2667              "Enabling unknown unicast suppression";2749              "Enabling unknown unicast suppression";
2668          }2750          }
2669          container control-word-disable {2751          container control-word-disable {
2670            presence "Indicates a control-word-disable node is configured.";2752            presence "Indicates a control-word-disable node is configured.";
2671            description2753            description
2672              "Disabling control-word";2754              "Disabling control-word";
2673          }2755          }
2674          container ignore-mtu-mismatch {2756          container ignore-mtu-mismatch {
2675            presence "Indicates a ignore-mtu-mismatch node is configured.";2757            presence "Indicates a ignore-mtu-mismatch node is configured.";
2676            description2758            description
2677              "Ignore mismatch of local and remote MTUs";2759              "Ignore mismatch of local and remote MTUs";
2678            container disable-deprecated {2760            container disable-deprecated {
2679              presence "Indicates a disable-deprecated node is configured.";2761              presence "Indicates a disable-deprecated node is configured.";
2680              description2762              description
2681                "Disables ingoring mismatch of local and remote MTUs (deprecated)";2763                "Disables ingoring mismatch of local and remote MTUs (deprecated)";
2682            }2764            }
2683          }2765          }
2684          container enforce-mtu-match {2766          container enforce-mtu-match {
2685            presence "Indicates a enforce-mtu-match node is configured.";2767            presence "Indicates a enforce-mtu-match node is configured.";
2686            description2768            description
2687              "Enforce matching of local and remote MTUs";2769              "Enforce matching of local and remote MTUs";
2688          }2770          }
2689          container transmit-mtu-zero {2771          container transmit-mtu-zero {
2690            presence "Indicates a transmit-mtu-zero node is configured.";2772            presence "Indicates a transmit-mtu-zero node is configured.";
2691            description2773            description
2692              "Transmit MTU zero to remote instead of actual local MTU";2774              "Transmit MTU zero to remote instead of actual local MTU";
2693            container disable-deprecated {2775            container disable-deprecated {
2694              presence "Indicates a disable-deprecated node is configured.";2776              presence "Indicates a disable-deprecated node is configured.";
2695              description2777              description
2696                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";2778                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
2697            }2779            }
2698          }2780          }
2699          container transmit-l2-mtu {2781          container transmit-l2-mtu {
2700            presence "Indicates a transmit-l2-mtu node is configured.";2782            presence "Indicates a transmit-l2-mtu node is configured.";
2701            description2783            description
2702              "Transmit L2 MTU of attachment circuit";2784              "Transmit L2 MTU of attachment circuit";
2703          }2785          }
2704          container re-origination-disable {2786          container re-origination-disable {
2705            presence "Indicates a re-origination-disable node is configured.";2787            presence "Indicates a re-origination-disable node is configured.";
2706            description2788            description
2707              "Disable route re-origination";2789              "Disable route re-origination";
2708          }2790          }
2709          container vrf {2791          container vrf {
2710            description2792            description
2711              "Enable EVPN instance for layer-3 route synchronization.";2793              "Enable EVPN instance for layer-3 route synchronization.";
2712            container default {2794            container default {
2713              presence "Indicates a default node is configured.";2795              presence "Indicates a default node is configured.";
2714              description2796              description
2715                "EVPN Instance for the default VRF";2797                "EVPN Instance for the default VRF";
2716            }2798            }
2717          }2799          }
2718          container multicast {2800          container multicast {
2719            presence "Indicates a multicast node is configured.";2801            presence "Indicates a multicast node is configured.";
2720            description2802            description
2721              "Configure EVPN Instance Multicast";2803              "Configure EVPN Instance Multicast";
2722            container source-connected {2804            container source-connected {
2723              presence "Indicates a source-connected node is configured.";2805              presence "Indicates a source-connected node is configured.";
2724              description2806              description
2725                "Multicast traffic source connected";2807                "Multicast traffic source connected";
2726            }2808            }
2727          }2809          }
2728          container proxy {2810          container proxy {
2729            presence "Indicates a proxy node is configured.";2811            presence "Indicates a proxy node is configured.";
2730            description2812            description
2731              "Configure EVPN Instance Proxy";2813              "Configure EVPN Instance Proxy";
2732            container igmp-snooping {2814            container igmp-snooping {
2733              presence "Indicates a igmp-snooping node is configured.";2815              presence "Indicates a igmp-snooping node is configured.";
2734              description2816              description
2735                "Proxy mode for IGMP-Snooping (selective multicast)";2817                "Proxy mode for IGMP-Snooping (selective multicast)";
2736            }2818            }
2737          }2819          }
2738          container etree {2820          container etree {
2739            presence "Indicates a etree node is configured.";2821            presence "Indicates a etree node is configured.";
2740            description2822            description
2741              "Configure EVPN Instance E-Tree";2823              "Configure EVPN Instance E-Tree";
2742            container leaf {2824            container leaf {
2743              presence "Indicates a leaf node is configured.";2825              presence "Indicates a leaf node is configured.";
2744              description2826              description
2745                "Designate EVPN Instance as EVPN E-Tree Leaf Site";2827                "Designate EVPN Instance as EVPN E-Tree Leaf Site";
2746            }2828            }
2747            container rt-leaf {2829            container rt-leaf {
2748              presence "Indicates a rt-leaf node is configured.";2830              presence "Indicates a rt-leaf node is configured.";
2749              description2831              description
2750                "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";2832                "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";
2751            }2833            }
2752          }2834          }
n2753          container locators {n2835          leaf locator {
2836            type xr:Cisco-ios-xr-string {
2837              length "1..58" {
2838                description
2839                  "Specify locator name";
2840              }
2841              pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
2842            }
2754            description2843            description
2755              "EVI locator to use for EVPN SID allocation";2844              "EVI locator to use for EVPN SID allocation";
n2756            list locator {n
2757              key "locator-name";
2758              description
2759                "EVI locator to use for EVPN SID allocation";
2760              leaf locator-name {
2761                type xr:Cisco-ios-xr-string {
2762                  length "1..58" {
2763                    description
2764                      "Specify locator name";
2765                  }
2766                  pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
2767                }
2768                description
2769                  "EVI locator to use for EVPN SID allocation";
2770              }
2771              container usid {
2772                description
2773                  "Configure the uSID wide function knob";
2774                container allocation {
2775                  description
2776                    "Set the allocation types associated with uSID";
2777                  container wide-local-id-block {
2778                    presence "Indicates a wide-local-id-block node is configured.";
2779                    description
2780                      "Enable uSID wide function knob for the locator";
2781                  }
2782                }
2783              }
2784            }
2785          }2845          }
2786          container vpws-single-active-backup-suppression {2846          container vpws-single-active-backup-suppression {
2787            presence "Indicates a vpws-single-active-backup-suppression node is configured.";2847            presence "Indicates a vpws-single-active-backup-suppression node is configured.";
2788            description2848            description
2789              "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";2849              "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";
2790          }2850          }
2791          container bvi-coupled-mode {2851          container bvi-coupled-mode {
2792            presence "Indicates a bvi-coupled-mode node is configured.";2852            presence "Indicates a bvi-coupled-mode node is configured.";
2793            description2853            description
2794              "Couples BVI state to the core EVPN Instance state";2854              "Couples BVI state to the core EVPN Instance state";
2795          }2855          }
2796        }2856        }
2797      }2857      }
2798      list evi {2858      list evi {
2799        key "vpn-id";2859        key "vpn-id";
2800        description2860        description
2801          "Configure EVPN Instance VPN ID";2861          "Configure EVPN Instance VPN ID";
2802        leaf vpn-id {2862        leaf vpn-id {
2803          type uint32 {2863          type uint32 {
2804            range "1..65534" {2864            range "1..65534" {
2805              description2865              description
2806                "EVPN Instance VPN ID value";2866                "EVPN Instance VPN ID value";
2807            }2867            }
2808          }2868          }
2809          description2869          description
2810            "Configure EVPN Instance VPN ID";2870            "Configure EVPN Instance VPN ID";
2811        }2871        }
2812        container bgp {2872        container bgp {
2813          presence "Indicates a bgp node is configured.";2873          presence "Indicates a bgp node is configured.";
2814          description2874          description
2815            "Configure BGP";2875            "Configure BGP";
2816          container rd {2876          container rd {
2817            description2877            description
2818              "Set the Route Distinguisher";2878              "Set the Route Distinguisher";
2819            leaf two-byte-as-number {2879            leaf two-byte-as-number {
2820              type uint32 {2880              type uint32 {
2821                range "1..65535" {2881                range "1..65535" {
2822                  description2882                  description
2823                    "Two Byte AS Number";2883                    "Two Byte AS Number";
2824                }2884                }
2825              }2885              }
n2826              must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n2886              must "not(../four-byte-as-number or ../ipv4-address)";
2827              description2887              description
2828                "Two Byte AS Number";2888                "Two Byte AS Number";
2829            }2889            }
2830            leaf two-byte-as-assigned-number {2890            leaf two-byte-as-assigned-number {
2831              type uint32 {2891              type uint32 {
2832                range "0..4294967295" {2892                range "0..4294967295" {
2833                  description2893                  description
2834                    "AS:nn (hex or decimal format)";2894                    "AS:nn (hex or decimal format)";
2835                }2895                }
2836              }2896              }
2837              must "../two-byte-as-number";2897              must "../two-byte-as-number";
2838              description2898              description
2839                "AS:nn (hex or decimal format)";2899                "AS:nn (hex or decimal format)";
2840            }2900            }
2841            leaf four-byte-as-number {2901            leaf four-byte-as-number {
2842              type uint32 {2902              type uint32 {
2843                range "65536..4294967295" {2903                range "65536..4294967295" {
2844                  description2904                  description
2845                    "Four Byte AS number";2905                    "Four Byte AS number";
2846                }2906                }
2847              }2907              }
n2848              must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n2908              must "not(../two-byte-as-number or ../ipv4-address)";
2849              description2909              description
2850                "Four Byte AS number";2910                "Four Byte AS number";
2851            }2911            }
2852            leaf four-byte-as-assigned-number {2912            leaf four-byte-as-assigned-number {
2853              type uint32 {2913              type uint32 {
2854                range "0..65535" {2914                range "0..65535" {
2855                  description2915                  description
2856                    "AS:nn (hex or decimal format)";2916                    "AS:nn (hex or decimal format)";
2857                }2917                }
2858              }2918              }
2859              must "../four-byte-as-number";2919              must "../four-byte-as-number";
2860              description2920              description
2861                "AS:nn (hex or decimal format)";2921                "AS:nn (hex or decimal format)";
2862            }2922            }
2863            leaf ipv4-address {2923            leaf ipv4-address {
2864              type inet:ipv4-address-no-zone;2924              type inet:ipv4-address-no-zone;
n2865              must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n2925              must "not(../two-byte-as-number or ../four-byte-as-number)";
2866              description2926              description
2867                "IP address";2927                "IP address";
2868            }2928            }
2869            leaf ipv4-address-assigned-number {2929            leaf ipv4-address-assigned-number {
2870              type uint32 {2930              type uint32 {
2871                range "0..65535" {2931                range "0..65535" {
2872                  description2932                  description
2873                    "IP-address:nn (hex or decimal format)";2933                    "IP-address:nn (hex or decimal format)";
2874                }2934                }
2875              }2935              }
2876              must "../ipv4-address";2936              must "../ipv4-address";
2877              description2937              description
2878                "IP-address:nn (hex or decimal format)";2938                "IP-address:nn (hex or decimal format)";
2879            }2939            }
2880          }2940          }
2881          container route-target {2941          container route-target {
2882            description2942            description
2883              "Set the Route Target";2943              "Set the Route Target";
2884            container two-byte-as-rts {2944            container two-byte-as-rts {
2885              description2945              description
2886                "Two Byte AS Number Route Target";2946                "Two Byte AS Number Route Target";
2887              list two-byte-as-rt {2947              list two-byte-as-rt {
2888                key "two-byte-as-number assigned-number";2948                key "two-byte-as-number assigned-number";
2889                description2949                description
2890                  "Two Byte AS Number Route Target";2950                  "Two Byte AS Number Route Target";
2891                leaf two-byte-as-number {2951                leaf two-byte-as-number {
2892                  type uint32 {2952                  type uint32 {
2893                    range "1..65535";2953                    range "1..65535";
2894                  }2954                  }
2895                  description2955                  description
2896                    "Two Byte AS Number";2956                    "Two Byte AS Number";
2897                }2957                }
2898                leaf assigned-number {2958                leaf assigned-number {
2899                  type uint32 {2959                  type uint32 {
2900                    range "0..4294967295" {2960                    range "0..4294967295" {
2901                      description2961                      description
2902                        "AS:nn (hex or decimal format)";2962                        "AS:nn (hex or decimal format)";
2903                    }2963                    }
2904                  }2964                  }
2905                  description2965                  description
2906                    "AS:nn (hex or decimal format)";2966                    "AS:nn (hex or decimal format)";
2907                }2967                }
2908              }2968              }
2909            }2969            }
2910            container four-byte-as-rts {2970            container four-byte-as-rts {
2911              description2971              description
2912                "Four Byte AS number Route Target";2972                "Four Byte AS number Route Target";
2913              list four-byte-as-rt {2973              list four-byte-as-rt {
2914                key "four-byte-as-number assigned-number";2974                key "four-byte-as-number assigned-number";
2915                description2975                description
2916                  "Four Byte AS number Route Target";2976                  "Four Byte AS number Route Target";
2917                leaf four-byte-as-number {2977                leaf four-byte-as-number {
2918                  type uint32 {2978                  type uint32 {
2919                    range "65536..4294967295";2979                    range "65536..4294967295";
2920                  }2980                  }
2921                  description2981                  description
2922                    "Four Byte AS number";2982                    "Four Byte AS number";
2923                }2983                }
2924                leaf assigned-number {2984                leaf assigned-number {
2925                  type uint32 {2985                  type uint32 {
2926                    range "0..65535" {2986                    range "0..65535" {
2927                      description2987                      description
2928                        "AS:nn (hex or decimal format)";2988                        "AS:nn (hex or decimal format)";
2929                    }2989                    }
2930                  }2990                  }
2931                  description2991                  description
2932                    "AS:nn (hex or decimal format)";2992                    "AS:nn (hex or decimal format)";
2933                }2993                }
2934              }2994              }
2935            }2995            }
2936            container ipv4-address-rts {2996            container ipv4-address-rts {
2937              description2997              description
2938                "IP address Route Target";2998                "IP address Route Target";
2939              list ipv4-address-rt {2999              list ipv4-address-rt {
2940                key "ipv4-address assigned-number";3000                key "ipv4-address assigned-number";
2941                description3001                description
2942                  "IP address";3002                  "IP address";
2943                leaf ipv4-address {3003                leaf ipv4-address {
2944                  type inet:ipv4-address-no-zone;3004                  type inet:ipv4-address-no-zone;
2945                  description3005                  description
2946                    "IP address";3006                    "IP address";
2947                }3007                }
2948                leaf assigned-number {3008                leaf assigned-number {
2949                  type uint32 {3009                  type uint32 {
2950                    range "0..65535" {3010                    range "0..65535" {
2951                      description3011                      description
2952                        "IP-address:nn (hex or decimal format)";3012                        "IP-address:nn (hex or decimal format)";
2953                    }3013                    }
2954                  }3014                  }
2955                  description3015                  description
2956                    "IP-address:nn (hex or decimal format)";3016                    "IP-address:nn (hex or decimal format)";
2957                }3017                }
2958              }3018              }
2959            }3019            }
2960            container none {3020            container none {
2961              presence "Indicates a none node is configured.";3021              presence "Indicates a none node is configured.";
2962              description3022              description
2963                "Withhold BGP RTs";3023                "Withhold BGP RTs";
2964            }3024            }
2965            container import {3025            container import {
2966              description3026              description
2967                "Import Route Target";3027                "Import Route Target";
2968              container two-byte-as-rts {3028              container two-byte-as-rts {
2969                description3029                description
2970                  "Two Byte AS Number Route Target";3030                  "Two Byte AS Number Route Target";
2971                list two-byte-as-rt {3031                list two-byte-as-rt {
2972                  key "two-byte-as-number assigned-number";3032                  key "two-byte-as-number assigned-number";
2973                  description3033                  description
2974                    "Two Byte AS Number Route Target";3034                    "Two Byte AS Number Route Target";
2975                  leaf two-byte-as-number {3035                  leaf two-byte-as-number {
2976                    type uint32 {3036                    type uint32 {
2977                      range "1..65535";3037                      range "1..65535";
2978                    }3038                    }
2979                    description3039                    description
2980                      "Two Byte AS Number";3040                      "Two Byte AS Number";
2981                  }3041                  }
2982                  leaf assigned-number {3042                  leaf assigned-number {
2983                    type uint32 {3043                    type uint32 {
2984                      range "0..4294967295" {3044                      range "0..4294967295" {
2985                        description3045                        description
2986                          "AS:nn (hex or decimal format)";3046                          "AS:nn (hex or decimal format)";
2987                      }3047                      }
2988                    }3048                    }
2989                    description3049                    description
2990                      "AS:nn (hex or decimal format)";3050                      "AS:nn (hex or decimal format)";
2991                  }3051                  }
2992                }3052                }
2993              }3053              }
2994              container four-byte-as-rts {3054              container four-byte-as-rts {
2995                description3055                description
2996                  "Four Byte AS number Route Target";3056                  "Four Byte AS number Route Target";
2997                list four-byte-as-rt {3057                list four-byte-as-rt {
2998                  key "four-byte-as-number assigned-number";3058                  key "four-byte-as-number assigned-number";
2999                  description3059                  description
3000                    "Four Byte AS number Route Target";3060                    "Four Byte AS number Route Target";
3001                  leaf four-byte-as-number {3061                  leaf four-byte-as-number {
3002                    type uint32 {3062                    type uint32 {
3003                      range "65536..4294967295";3063                      range "65536..4294967295";
3004                    }3064                    }
3005                    description3065                    description
3006                      "Four Byte AS number";3066                      "Four Byte AS number";
3007                  }3067                  }
3008                  leaf assigned-number {3068                  leaf assigned-number {
3009                    type uint32 {3069                    type uint32 {
3010                      range "0..65535" {3070                      range "0..65535" {
3011                        description3071                        description
3012                          "AS:nn (hex or decimal format)";3072                          "AS:nn (hex or decimal format)";
3013                      }3073                      }
3014                    }3074                    }
3015                    description3075                    description
3016                      "AS:nn (hex or decimal format)";3076                      "AS:nn (hex or decimal format)";
3017                  }3077                  }
3018                }3078                }
3019              }3079              }
3020              container ipv4-address-rts {3080              container ipv4-address-rts {
3021                description3081                description
3022                  "IP address Route Target";3082                  "IP address Route Target";
3023                list ipv4-address-rt {3083                list ipv4-address-rt {
3024                  key "ipv4-address assigned-number";3084                  key "ipv4-address assigned-number";
3025                  description3085                  description
3026                    "IP address";3086                    "IP address";
3027                  leaf ipv4-address {3087                  leaf ipv4-address {
3028                    type inet:ipv4-address-no-zone;3088                    type inet:ipv4-address-no-zone;
3029                    description3089                    description
3030                      "IP address";3090                      "IP address";
3031                  }3091                  }
3032                  leaf assigned-number {3092                  leaf assigned-number {
3033                    type uint32 {3093                    type uint32 {
3034                      range "0..65535" {3094                      range "0..65535" {
3035                        description3095                        description
3036                          "IP-address:nn (hex or decimal format)";3096                          "IP-address:nn (hex or decimal format)";
3037                      }3097                      }
3038                    }3098                    }
3039                    description3099                    description
3040                      "IP-address:nn (hex or decimal format)";3100                      "IP-address:nn (hex or decimal format)";
3041                  }3101                  }
3042                }3102                }
3043              }3103              }
3044              container none {3104              container none {
3045                presence "Indicates a none node is configured.";3105                presence "Indicates a none node is configured.";
3046                description3106                description
3047                  "Withhold BGP RTs";3107                  "Withhold BGP RTs";
3048              }3108              }
3049            }3109            }
3050            container export {3110            container export {
3051              description3111              description
3052                "Export Route Target";3112                "Export Route Target";
3053              container two-byte-as-rts {3113              container two-byte-as-rts {
3054                description3114                description
3055                  "Two Byte AS Number Route Target";3115                  "Two Byte AS Number Route Target";
3056                list two-byte-as-rt {3116                list two-byte-as-rt {
3057                  key "two-byte-as-number assigned-number";3117                  key "two-byte-as-number assigned-number";
3058                  description3118                  description
3059                    "Two Byte AS Number Route Target";3119                    "Two Byte AS Number Route Target";
3060                  leaf two-byte-as-number {3120                  leaf two-byte-as-number {
3061                    type uint32 {3121                    type uint32 {
3062                      range "1..65535";3122                      range "1..65535";
3063                    }3123                    }
3064                    description3124                    description
3065                      "Two Byte AS Number";3125                      "Two Byte AS Number";
3066                  }3126                  }
3067                  leaf assigned-number {3127                  leaf assigned-number {
3068                    type uint32 {3128                    type uint32 {
3069                      range "0..4294967295" {3129                      range "0..4294967295" {
3070                        description3130                        description
3071                          "AS:nn (hex or decimal format)";3131                          "AS:nn (hex or decimal format)";
3072                      }3132                      }
3073                    }3133                    }
3074                    description3134                    description
3075                      "AS:nn (hex or decimal format)";3135                      "AS:nn (hex or decimal format)";
3076                  }3136                  }
3077                }3137                }
3078              }3138              }
3079              container four-byte-as-rts {3139              container four-byte-as-rts {
3080                description3140                description
3081                  "Four Byte AS number Route Target";3141                  "Four Byte AS number Route Target";
3082                list four-byte-as-rt {3142                list four-byte-as-rt {
3083                  key "four-byte-as-number assigned-number";3143                  key "four-byte-as-number assigned-number";
3084                  description3144                  description
3085                    "Four Byte AS number Route Target";3145                    "Four Byte AS number Route Target";
3086                  leaf four-byte-as-number {3146                  leaf four-byte-as-number {
3087                    type uint32 {3147                    type uint32 {
3088                      range "65536..4294967295";3148                      range "65536..4294967295";
3089                    }3149                    }
3090                    description3150                    description
3091                      "Four Byte AS number";3151                      "Four Byte AS number";
3092                  }3152                  }
3093                  leaf assigned-number {3153                  leaf assigned-number {
3094                    type uint32 {3154                    type uint32 {
3095                      range "0..65535" {3155                      range "0..65535" {
3096                        description3156                        description
3097                          "AS:nn (hex or decimal format)";3157                          "AS:nn (hex or decimal format)";
3098                      }3158                      }
3099                    }3159                    }
3100                    description3160                    description
3101                      "AS:nn (hex or decimal format)";3161                      "AS:nn (hex or decimal format)";
3102                  }3162                  }
3103                }3163                }
3104              }3164              }
3105              container ipv4-address-rts {3165              container ipv4-address-rts {
3106                description3166                description
3107                  "IP address Route Target";3167                  "IP address Route Target";
3108                list ipv4-address-rt {3168                list ipv4-address-rt {
3109                  key "ipv4-address assigned-number";3169                  key "ipv4-address assigned-number";
3110                  description3170                  description
3111                    "IP address";3171                    "IP address";
3112                  leaf ipv4-address {3172                  leaf ipv4-address {
3113                    type inet:ipv4-address-no-zone;3173                    type inet:ipv4-address-no-zone;
3114                    description3174                    description
3115                      "IP address";3175                      "IP address";
3116                  }3176                  }
3117                  leaf assigned-number {3177                  leaf assigned-number {
3118                    type uint32 {3178                    type uint32 {
3119                      range "0..65535" {3179                      range "0..65535" {
3120                        description3180                        description
3121                          "IP-address:nn (hex or decimal format)";3181                          "IP-address:nn (hex or decimal format)";
3122                      }3182                      }
3123                    }3183                    }
3124                    description3184                    description
3125                      "IP-address:nn (hex or decimal format)";3185                      "IP-address:nn (hex or decimal format)";
3126                  }3186                  }
3127                }3187                }
3128              }3188              }
3129              container none {3189              container none {
3130                presence "Indicates a none node is configured.";3190                presence "Indicates a none node is configured.";
3131                description3191                description
3132                  "Withhold BGP RTs";3192                  "Withhold BGP RTs";
3133              }3193              }
3134            }3194            }
3135          }3195          }
3136          leaf table-policy {3196          leaf table-policy {
3137            type xr:Route-policy-name;3197            type xr:Route-policy-name;
3138            description3198            description
3139              "Configure policy for installation of forwarding data to L2FIB";3199              "Configure policy for installation of forwarding data to L2FIB";
3140          }3200          }
3141          container implicit-import-disable {3201          container implicit-import-disable {
3142            presence "Indicates a implicit-import-disable node is configured.";3202            presence "Indicates a implicit-import-disable node is configured.";
3143            description3203            description
3144              "Disable BGP implicit import";3204              "Disable BGP implicit import";
3145          }3205          }
3146          container route-policy {3206          container route-policy {
3147            description3207            description
3148              "Apply route policy";3208              "Apply route policy";
3149            leaf export {3209            leaf export {
3150              type xr:Route-policy-name;3210              type xr:Route-policy-name;
3151              description3211              description
3152                "Export route policy";3212                "Export route policy";
3153            }3213            }
3154            leaf import {3214            leaf import {
3155              type xr:Route-policy-name;3215              type xr:Route-policy-name;
3156              description3216              description
3157                "Import route policy";3217                "Import route policy";
3158            }3218            }
3159          }3219          }
3160        }3220        }
3161        leaf description {3221        leaf description {
3162          type string {3222          type string {
3163            length "1..64" {3223            length "1..64" {
3164              description3224              description
3165                "EVPN Instance description string";3225                "EVPN Instance description string";
3166            }3226            }
3167          }3227          }
3168          description3228          description
3169            "Description for this EVPN Instance";3229            "Description for this EVPN Instance";
3170        }3230        }
3171        container load-balancing {3231        container load-balancing {
3172          presence "Indicates a load-balancing node is configured.";3232          presence "Indicates a load-balancing node is configured.";
3173          description3233          description
3174            "Configure EVPN Instance load-balancing";3234            "Configure EVPN Instance load-balancing";
3175          container flow-label {3235          container flow-label {
3176            description3236            description
3177              "Flow Label load balancing";3237              "Flow Label load balancing";
3178            container static {3238            container static {
3179              presence "Indicates a static node is configured.";3239              presence "Indicates a static node is configured.";
3180              description3240              description
3181                "Static configuration of Flow Label";3241                "Static configuration of Flow Label";
3182            }3242            }
3183          }3243          }
3184        }3244        }
3185        container ecmp-disable-deprecated {3245        container ecmp-disable-deprecated {
3186          presence "Indicates a ecmp-disable-deprecated node is configured.";3246          presence "Indicates a ecmp-disable-deprecated node is configured.";
3187          description3247          description
3188            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";3248            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
3189        }3249        }
3190        container preferred-nexthop {3250        container preferred-nexthop {
3191          description3251          description
3192            "Elect unique active path from ECMP candidate list";3252            "Elect unique active path from ECMP candidate list";
3193          container lowest-ip {3253          container lowest-ip {
3194            must "not(../highest-ip or ../modulo)";3254            must "not(../highest-ip or ../modulo)";
3195            presence "Indicates a lowest-ip node is configured.";3255            presence "Indicates a lowest-ip node is configured.";
3196            description3256            description
3197              "Lowest nexthop IP is active";3257              "Lowest nexthop IP is active";
3198          }3258          }
3199          container highest-ip {3259          container highest-ip {
3200            must "not(../lowest-ip or ../modulo)";3260            must "not(../lowest-ip or ../modulo)";
3201            presence "Indicates a highest-ip node is configured.";3261            presence "Indicates a highest-ip node is configured.";
3202            description3262            description
3203              "Highest nexthop IP is active";3263              "Highest nexthop IP is active";
3204          }3264          }
3205          container modulo {3265          container modulo {
3206            must "not(../lowest-ip or ../highest-ip)";3266            must "not(../lowest-ip or ../highest-ip)";
3207            presence "Indicates a modulo node is configured.";3267            presence "Indicates a modulo node is configured.";
3208            description3268            description
3209              "EVI modulo of nexthops cardinality is active";3269              "EVI modulo of nexthops cardinality is active";
3210          }3270          }
3211        }3271        }
3212        container advertise-mac {3272        container advertise-mac {
3213          presence "Indicates a advertise-mac node is configured.";3273          presence "Indicates a advertise-mac node is configured.";
3214          description3274          description
3215            "Configure EVPN Instance MAC advertisement";3275            "Configure EVPN Instance MAC advertisement";
3216          container bvi-mac {3276          container bvi-mac {
3217            presence "Indicates a bvi-mac node is configured.";3277            presence "Indicates a bvi-mac node is configured.";
3218            description3278            description
3219              "Advertise local MAC and BVI MAC routes";3279              "Advertise local MAC and BVI MAC routes";
3220          }3280          }
3221        }3281        }
3222        container unknown-unicast-suppression {3282        container unknown-unicast-suppression {
3223          presence "Indicates a unknown-unicast-suppression node is configured.";3283          presence "Indicates a unknown-unicast-suppression node is configured.";
3224          description3284          description
3225            "Enabling unknown unicast suppression";3285            "Enabling unknown unicast suppression";
3226        }3286        }
3227        container control-word-disable {3287        container control-word-disable {
3228          presence "Indicates a control-word-disable node is configured.";3288          presence "Indicates a control-word-disable node is configured.";
3229          description3289          description
3230            "Disabling control-word";3290            "Disabling control-word";
3231        }3291        }
3232        container ignore-mtu-mismatch {3292        container ignore-mtu-mismatch {
3233          presence "Indicates a ignore-mtu-mismatch node is configured.";3293          presence "Indicates a ignore-mtu-mismatch node is configured.";
3234          description3294          description
3235            "Ignore mismatch of local and remote MTUs";3295            "Ignore mismatch of local and remote MTUs";
3236          container disable-deprecated {3296          container disable-deprecated {
3237            presence "Indicates a disable-deprecated node is configured.";3297            presence "Indicates a disable-deprecated node is configured.";
3238            description3298            description
3239              "Disables ingoring mismatch of local and remote MTUs (deprecated)";3299              "Disables ingoring mismatch of local and remote MTUs (deprecated)";
3240          }3300          }
3241        }3301        }
3242        container enforce-mtu-match {3302        container enforce-mtu-match {
3243          presence "Indicates a enforce-mtu-match node is configured.";3303          presence "Indicates a enforce-mtu-match node is configured.";
3244          description3304          description
3245            "Enforce matching of local and remote MTUs";3305            "Enforce matching of local and remote MTUs";
3246        }3306        }
3247        container transmit-mtu-zero {3307        container transmit-mtu-zero {
3248          presence "Indicates a transmit-mtu-zero node is configured.";3308          presence "Indicates a transmit-mtu-zero node is configured.";
3249          description3309          description
3250            "Transmit MTU zero to remote instead of actual local MTU";3310            "Transmit MTU zero to remote instead of actual local MTU";
3251          container disable-deprecated {3311          container disable-deprecated {
3252            presence "Indicates a disable-deprecated node is configured.";3312            presence "Indicates a disable-deprecated node is configured.";
3253            description3313            description
3254              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";3314              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
3255          }3315          }
3256        }3316        }
3257        container transmit-l2-mtu {3317        container transmit-l2-mtu {
3258          presence "Indicates a transmit-l2-mtu node is configured.";3318          presence "Indicates a transmit-l2-mtu node is configured.";
3259          description3319          description
3260            "Transmit L2 MTU of attachment circuit";3320            "Transmit L2 MTU of attachment circuit";
3261        }3321        }
3262        container re-origination-disable {3322        container re-origination-disable {
3263          presence "Indicates a re-origination-disable node is configured.";3323          presence "Indicates a re-origination-disable node is configured.";
3264          description3324          description
3265            "Disable route re-origination";3325            "Disable route re-origination";
3266        }3326        }
3267        container vrf {3327        container vrf {
3268          description3328          description
3269            "Enable EVPN instance for layer-3 route synchronization.";3329            "Enable EVPN instance for layer-3 route synchronization.";
3270          container default {3330          container default {
3271            presence "Indicates a default node is configured.";3331            presence "Indicates a default node is configured.";
3272            description3332            description
3273              "EVPN Instance for the default VRF";3333              "EVPN Instance for the default VRF";
3274          }3334          }
3275        }3335        }
3276        container multicast {3336        container multicast {
3277          presence "Indicates a multicast node is configured.";3337          presence "Indicates a multicast node is configured.";
3278          description3338          description
3279            "Configure EVPN Instance Multicast";3339            "Configure EVPN Instance Multicast";
3280          container source-connected {3340          container source-connected {
3281            presence "Indicates a source-connected node is configured.";3341            presence "Indicates a source-connected node is configured.";
3282            description3342            description
3283              "Multicast traffic source connected";3343              "Multicast traffic source connected";
3284          }3344          }
3285        }3345        }
3286        container proxy {3346        container proxy {
3287          presence "Indicates a proxy node is configured.";3347          presence "Indicates a proxy node is configured.";
3288          description3348          description
3289            "Configure EVPN Instance Proxy";3349            "Configure EVPN Instance Proxy";
3290          container igmp-snooping {3350          container igmp-snooping {
3291            presence "Indicates a igmp-snooping node is configured.";3351            presence "Indicates a igmp-snooping node is configured.";
3292            description3352            description
3293              "Proxy mode for IGMP-Snooping (selective multicast)";3353              "Proxy mode for IGMP-Snooping (selective multicast)";
3294          }3354          }
3295        }3355        }
3296        container etree {3356        container etree {
3297          presence "Indicates a etree node is configured.";3357          presence "Indicates a etree node is configured.";
3298          description3358          description
3299            "Configure EVPN Instance E-Tree";3359            "Configure EVPN Instance E-Tree";
3300          container leaf {3360          container leaf {
3301            presence "Indicates a leaf node is configured.";3361            presence "Indicates a leaf node is configured.";
3302            description3362            description
3303              "Designate EVPN Instance as EVPN E-Tree Leaf Site";3363              "Designate EVPN Instance as EVPN E-Tree Leaf Site";
3304          }3364          }
3305          container rt-leaf {3365          container rt-leaf {
3306            presence "Indicates a rt-leaf node is configured.";3366            presence "Indicates a rt-leaf node is configured.";
3307            description3367            description
3308              "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";3368              "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";
3309          }3369          }
3310        }3370        }
n3311        container locators {n3371        leaf locator {
3372          type xr:Cisco-ios-xr-string {
3373            length "1..58" {
3374              description
3375                "Specify locator name";
3376            }
3377            pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
3378          }
3312          description3379          description
3313            "EVI locator to use for EVPN SID allocation";3380            "EVI locator to use for EVPN SID allocation";
n3314          list locator {n
3315            key "locator-name";
3316            description
3317              "EVI locator to use for EVPN SID allocation";
3318            leaf locator-name {
3319              type xr:Cisco-ios-xr-string {
3320                length "1..58" {
3321                  description
3322                    "Specify locator name";
3323                }
3324                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
3325              }
3326              description
3327                "EVI locator to use for EVPN SID allocation";
3328            }
3329            container usid {
3330              description
3331                "Configure the uSID wide function knob";
3332              container allocation {
3333                description
3334                  "Set the allocation types associated with uSID";
3335                container wide-local-id-block {
3336                  presence "Indicates a wide-local-id-block node is configured.";
3337                  description
3338                    "Enable uSID wide function knob for the locator";
3339                }
3340              }
3341            }
3342          }
3343        }3381        }
3344        container vpws-single-active-backup-suppression {3382        container vpws-single-active-backup-suppression {
3345          presence "Indicates a vpws-single-active-backup-suppression node is configured.";3383          presence "Indicates a vpws-single-active-backup-suppression node is configured.";
3346          description3384          description
3347            "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";3385            "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";
3348        }3386        }
3349        container bvi-coupled-mode {3387        container bvi-coupled-mode {
3350          presence "Indicates a bvi-coupled-mode node is configured.";3388          presence "Indicates a bvi-coupled-mode node is configured.";
3351          description3389          description
3352            "Couples BVI state to the core EVPN Instance state";3390            "Couples BVI state to the core EVPN Instance state";
3353        }3391        }
3354      }3392      }
3355    }3393    }
3356    container route-sync {3394    container route-sync {
3357      description3395      description
3358        "Configure vrf route-sync EVPN Instance VPN ID";3396        "Configure vrf route-sync EVPN Instance VPN ID";
3359      container stitching {3397      container stitching {
3360        description3398        description
3361          "Treat EVPN Instance as Stitching side";3399          "Treat EVPN Instance as Stitching side";
3362        list evi {3400        list evi {
3363          key "vpn-id";3401          key "vpn-id";
3364          description3402          description
3365            "Configure EVPN Instance VPN ID";3403            "Configure EVPN Instance VPN ID";
3366          leaf vpn-id {3404          leaf vpn-id {
3367            type uint32 {3405            type uint32 {
3368              range "1..65534" {3406              range "1..65534" {
3369                description3407                description
3370                  "EVPN Instance VPN ID value";3408                  "EVPN Instance VPN ID value";
3371              }3409              }
3372            }3410            }
3373            description3411            description
3374              "Configure EVPN Instance VPN ID";3412              "Configure EVPN Instance VPN ID";
3375          }3413          }
3376          container bgp {3414          container bgp {
3377            presence "Indicates a bgp node is configured.";3415            presence "Indicates a bgp node is configured.";
3378            description3416            description
3379              "Configure BGP";3417              "Configure BGP";
3380            container rd {3418            container rd {
3381              description3419              description
3382                "Set the Route Distinguisher";3420                "Set the Route Distinguisher";
3383              leaf two-byte-as-number {3421              leaf two-byte-as-number {
3384                type uint32 {3422                type uint32 {
3385                  range "1..65535" {3423                  range "1..65535" {
3386                    description3424                    description
3387                      "Two Byte AS Number";3425                      "Two Byte AS Number";
3388                  }3426                  }
3389                }3427                }
n3390                must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n3428                must "not(../four-byte-as-number or ../ipv4-address)";
3391                description3429                description
3392                  "Two Byte AS Number";3430                  "Two Byte AS Number";
3393              }3431              }
3394              leaf two-byte-as-assigned-number {3432              leaf two-byte-as-assigned-number {
3395                type uint32 {3433                type uint32 {
3396                  range "0..4294967295" {3434                  range "0..4294967295" {
3397                    description3435                    description
3398                      "AS:nn (hex or decimal format)";3436                      "AS:nn (hex or decimal format)";
3399                  }3437                  }
3400                }3438                }
3401                must "../two-byte-as-number";3439                must "../two-byte-as-number";
3402                description3440                description
3403                  "AS:nn (hex or decimal format)";3441                  "AS:nn (hex or decimal format)";
3404              }3442              }
3405              leaf four-byte-as-number {3443              leaf four-byte-as-number {
3406                type uint32 {3444                type uint32 {
3407                  range "65536..4294967295" {3445                  range "65536..4294967295" {
3408                    description3446                    description
3409                      "Four Byte AS number";3447                      "Four Byte AS number";
3410                  }3448                  }
3411                }3449                }
n3412                must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n3450                must "not(../two-byte-as-number or ../ipv4-address)";
3413                description3451                description
3414                  "Four Byte AS number";3452                  "Four Byte AS number";
3415              }3453              }
3416              leaf four-byte-as-assigned-number {3454              leaf four-byte-as-assigned-number {
3417                type uint32 {3455                type uint32 {
3418                  range "0..65535" {3456                  range "0..65535" {
3419                    description3457                    description
3420                      "AS:nn (hex or decimal format)";3458                      "AS:nn (hex or decimal format)";
3421                  }3459                  }
3422                }3460                }
3423                must "../four-byte-as-number";3461                must "../four-byte-as-number";
3424                description3462                description
3425                  "AS:nn (hex or decimal format)";3463                  "AS:nn (hex or decimal format)";
3426              }3464              }
3427              leaf ipv4-address {3465              leaf ipv4-address {
3428                type inet:ipv4-address-no-zone;3466                type inet:ipv4-address-no-zone;
n3429                must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n3467                must "not(../two-byte-as-number or ../four-byte-as-number)";
3430                description3468                description
3431                  "IP address";3469                  "IP address";
3432              }3470              }
3433              leaf ipv4-address-assigned-number {3471              leaf ipv4-address-assigned-number {
3434                type uint32 {3472                type uint32 {
3435                  range "0..65535" {3473                  range "0..65535" {
3436                    description3474                    description
3437                      "IP-address:nn (hex or decimal format)";3475                      "IP-address:nn (hex or decimal format)";
3438                  }3476                  }
3439                }3477                }
3440                must "../ipv4-address";3478                must "../ipv4-address";
3441                description3479                description
3442                  "IP-address:nn (hex or decimal format)";3480                  "IP-address:nn (hex or decimal format)";
3443              }3481              }
3444            }3482            }
3445            container route-target {3483            container route-target {
3446              description3484              description
3447                "Set the Route Target";3485                "Set the Route Target";
3448              container two-byte-as-rts {3486              container two-byte-as-rts {
3449                description3487                description
3450                  "Two Byte AS Number Route Target";3488                  "Two Byte AS Number Route Target";
3451                list two-byte-as-rt {3489                list two-byte-as-rt {
3452                  key "two-byte-as-number assigned-number";3490                  key "two-byte-as-number assigned-number";
3453                  description3491                  description
3454                    "Two Byte AS Number Route Target";3492                    "Two Byte AS Number Route Target";
3455                  leaf two-byte-as-number {3493                  leaf two-byte-as-number {
3456                    type uint32 {3494                    type uint32 {
3457                      range "1..65535";3495                      range "1..65535";
3458                    }3496                    }
3459                    description3497                    description
3460                      "Two Byte AS Number";3498                      "Two Byte AS Number";
3461                  }3499                  }
3462                  leaf assigned-number {3500                  leaf assigned-number {
3463                    type uint32 {3501                    type uint32 {
3464                      range "0..4294967295" {3502                      range "0..4294967295" {
3465                        description3503                        description
3466                          "AS:nn (hex or decimal format)";3504                          "AS:nn (hex or decimal format)";
3467                      }3505                      }
3468                    }3506                    }
3469                    description3507                    description
3470                      "AS:nn (hex or decimal format)";3508                      "AS:nn (hex or decimal format)";
3471                  }3509                  }
3472                }3510                }
3473              }3511              }
3474              container four-byte-as-rts {3512              container four-byte-as-rts {
3475                description3513                description
3476                  "Four Byte AS number Route Target";3514                  "Four Byte AS number Route Target";
3477                list four-byte-as-rt {3515                list four-byte-as-rt {
3478                  key "four-byte-as-number assigned-number";3516                  key "four-byte-as-number assigned-number";
3479                  description3517                  description
3480                    "Four Byte AS number Route Target";3518                    "Four Byte AS number Route Target";
3481                  leaf four-byte-as-number {3519                  leaf four-byte-as-number {
3482                    type uint32 {3520                    type uint32 {
3483                      range "65536..4294967295";3521                      range "65536..4294967295";
3484                    }3522                    }
3485                    description3523                    description
3486                      "Four Byte AS number";3524                      "Four Byte AS number";
3487                  }3525                  }
3488                  leaf assigned-number {3526                  leaf assigned-number {
3489                    type uint32 {3527                    type uint32 {
3490                      range "0..65535" {3528                      range "0..65535" {
3491                        description3529                        description
3492                          "AS:nn (hex or decimal format)";3530                          "AS:nn (hex or decimal format)";
3493                      }3531                      }
3494                    }3532                    }
3495                    description3533                    description
3496                      "AS:nn (hex or decimal format)";3534                      "AS:nn (hex or decimal format)";
3497                  }3535                  }
3498                }3536                }
3499              }3537              }
3500              container ipv4-address-rts {3538              container ipv4-address-rts {
3501                description3539                description
3502                  "IP address Route Target";3540                  "IP address Route Target";
3503                list ipv4-address-rt {3541                list ipv4-address-rt {
3504                  key "ipv4-address assigned-number";3542                  key "ipv4-address assigned-number";
3505                  description3543                  description
3506                    "IP address";3544                    "IP address";
3507                  leaf ipv4-address {3545                  leaf ipv4-address {
3508                    type inet:ipv4-address-no-zone;3546                    type inet:ipv4-address-no-zone;
3509                    description3547                    description
3510                      "IP address";3548                      "IP address";
3511                  }3549                  }
3512                  leaf assigned-number {3550                  leaf assigned-number {
3513                    type uint32 {3551                    type uint32 {
3514                      range "0..65535" {3552                      range "0..65535" {
3515                        description3553                        description
3516                          "IP-address:nn (hex or decimal format)";3554                          "IP-address:nn (hex or decimal format)";
3517                      }3555                      }
3518                    }3556                    }
3519                    description3557                    description
3520                      "IP-address:nn (hex or decimal format)";3558                      "IP-address:nn (hex or decimal format)";
3521                  }3559                  }
3522                }3560                }
3523              }3561              }
3524              container none {3562              container none {
3525                presence "Indicates a none node is configured.";3563                presence "Indicates a none node is configured.";
3526                description3564                description
3527                  "Withhold BGP RTs";3565                  "Withhold BGP RTs";
3528              }3566              }
3529              container import {3567              container import {
3530                description3568                description
3531                  "Import Route Target";3569                  "Import Route Target";
3532                container two-byte-as-rts {3570                container two-byte-as-rts {
3533                  description3571                  description
3534                    "Two Byte AS Number Route Target";3572                    "Two Byte AS Number Route Target";
3535                  list two-byte-as-rt {3573                  list two-byte-as-rt {
3536                    key "two-byte-as-number assigned-number";3574                    key "two-byte-as-number assigned-number";
3537                    description3575                    description
3538                      "Two Byte AS Number Route Target";3576                      "Two Byte AS Number Route Target";
3539                    leaf two-byte-as-number {3577                    leaf two-byte-as-number {
3540                      type uint32 {3578                      type uint32 {
3541                        range "1..65535";3579                        range "1..65535";
3542                      }3580                      }
3543                      description3581                      description
3544                        "Two Byte AS Number";3582                        "Two Byte AS Number";
3545                    }3583                    }
3546                    leaf assigned-number {3584                    leaf assigned-number {
3547                      type uint32 {3585                      type uint32 {
3548                        range "0..4294967295" {3586                        range "0..4294967295" {
3549                          description3587                          description
3550                            "AS:nn (hex or decimal format)";3588                            "AS:nn (hex or decimal format)";
3551                        }3589                        }
3552                      }3590                      }
3553                      description3591                      description
3554                        "AS:nn (hex or decimal format)";3592                        "AS:nn (hex or decimal format)";
3555                    }3593                    }
3556                  }3594                  }
3557                }3595                }
3558                container four-byte-as-rts {3596                container four-byte-as-rts {
3559                  description3597                  description
3560                    "Four Byte AS number Route Target";3598                    "Four Byte AS number Route Target";
3561                  list four-byte-as-rt {3599                  list four-byte-as-rt {
3562                    key "four-byte-as-number assigned-number";3600                    key "four-byte-as-number assigned-number";
3563                    description3601                    description
3564                      "Four Byte AS number Route Target";3602                      "Four Byte AS number Route Target";
3565                    leaf four-byte-as-number {3603                    leaf four-byte-as-number {
3566                      type uint32 {3604                      type uint32 {
3567                        range "65536..4294967295";3605                        range "65536..4294967295";
3568                      }3606                      }
3569                      description3607                      description
3570                        "Four Byte AS number";3608                        "Four Byte AS number";
3571                    }3609                    }
3572                    leaf assigned-number {3610                    leaf assigned-number {
3573                      type uint32 {3611                      type uint32 {
3574                        range "0..65535" {3612                        range "0..65535" {
3575                          description3613                          description
3576                            "AS:nn (hex or decimal format)";3614                            "AS:nn (hex or decimal format)";
3577                        }3615                        }
3578                      }3616                      }
3579                      description3617                      description
3580                        "AS:nn (hex or decimal format)";3618                        "AS:nn (hex or decimal format)";
3581                    }3619                    }
3582                  }3620                  }
3583                }3621                }
3584                container ipv4-address-rts {3622                container ipv4-address-rts {
3585                  description3623                  description
3586                    "IP address Route Target";3624                    "IP address Route Target";
3587                  list ipv4-address-rt {3625                  list ipv4-address-rt {
3588                    key "ipv4-address assigned-number";3626                    key "ipv4-address assigned-number";
3589                    description3627                    description
3590                      "IP address";3628                      "IP address";
3591                    leaf ipv4-address {3629                    leaf ipv4-address {
3592                      type inet:ipv4-address-no-zone;3630                      type inet:ipv4-address-no-zone;
3593                      description3631                      description
3594                        "IP address";3632                        "IP address";
3595                    }3633                    }
3596                    leaf assigned-number {3634                    leaf assigned-number {
3597                      type uint32 {3635                      type uint32 {
3598                        range "0..65535" {3636                        range "0..65535" {
3599                          description3637                          description
3600                            "IP-address:nn (hex or decimal format)";3638                            "IP-address:nn (hex or decimal format)";
3601                        }3639                        }
3602                      }3640                      }
3603                      description3641                      description
3604                        "IP-address:nn (hex or decimal format)";3642                        "IP-address:nn (hex or decimal format)";
3605                    }3643                    }
3606                  }3644                  }
3607                }3645                }
3608                container none {3646                container none {
3609                  presence "Indicates a none node is configured.";3647                  presence "Indicates a none node is configured.";
3610                  description3648                  description
3611                    "Withhold BGP RTs";3649                    "Withhold BGP RTs";
3612                }3650                }
3613              }3651              }
3614              container export {3652              container export {
3615                description3653                description
3616                  "Export Route Target";3654                  "Export Route Target";
3617                container two-byte-as-rts {3655                container two-byte-as-rts {
3618                  description3656                  description
3619                    "Two Byte AS Number Route Target";3657                    "Two Byte AS Number Route Target";
3620                  list two-byte-as-rt {3658                  list two-byte-as-rt {
3621                    key "two-byte-as-number assigned-number";3659                    key "two-byte-as-number assigned-number";
3622                    description3660                    description
3623                      "Two Byte AS Number Route Target";3661                      "Two Byte AS Number Route Target";
3624                    leaf two-byte-as-number {3662                    leaf two-byte-as-number {
3625                      type uint32 {3663                      type uint32 {
3626                        range "1..65535";3664                        range "1..65535";
3627                      }3665                      }
3628                      description3666                      description
3629                        "Two Byte AS Number";3667                        "Two Byte AS Number";
3630                    }3668                    }
3631                    leaf assigned-number {3669                    leaf assigned-number {
3632                      type uint32 {3670                      type uint32 {
3633                        range "0..4294967295" {3671                        range "0..4294967295" {
3634                          description3672                          description
3635                            "AS:nn (hex or decimal format)";3673                            "AS:nn (hex or decimal format)";
3636                        }3674                        }
3637                      }3675                      }
3638                      description3676                      description
3639                        "AS:nn (hex or decimal format)";3677                        "AS:nn (hex or decimal format)";
3640                    }3678                    }
3641                  }3679                  }
3642                }3680                }
3643                container four-byte-as-rts {3681                container four-byte-as-rts {
3644                  description3682                  description
3645                    "Four Byte AS number Route Target";3683                    "Four Byte AS number Route Target";
3646                  list four-byte-as-rt {3684                  list four-byte-as-rt {
3647                    key "four-byte-as-number assigned-number";3685                    key "four-byte-as-number assigned-number";
3648                    description3686                    description
3649                      "Four Byte AS number Route Target";3687                      "Four Byte AS number Route Target";
3650                    leaf four-byte-as-number {3688                    leaf four-byte-as-number {
3651                      type uint32 {3689                      type uint32 {
3652                        range "65536..4294967295";3690                        range "65536..4294967295";
3653                      }3691                      }
3654                      description3692                      description
3655                        "Four Byte AS number";3693                        "Four Byte AS number";
3656                    }3694                    }
3657                    leaf assigned-number {3695                    leaf assigned-number {
3658                      type uint32 {3696                      type uint32 {
3659                        range "0..65535" {3697                        range "0..65535" {
3660                          description3698                          description
3661                            "AS:nn (hex or decimal format)";3699                            "AS:nn (hex or decimal format)";
3662                        }3700                        }
3663                      }3701                      }
3664                      description3702                      description
3665                        "AS:nn (hex or decimal format)";3703                        "AS:nn (hex or decimal format)";
3666                    }3704                    }
3667                  }3705                  }
3668                }3706                }
3669                container ipv4-address-rts {3707                container ipv4-address-rts {
3670                  description3708                  description
3671                    "IP address Route Target";3709                    "IP address Route Target";
3672                  list ipv4-address-rt {3710                  list ipv4-address-rt {
3673                    key "ipv4-address assigned-number";3711                    key "ipv4-address assigned-number";
3674                    description3712                    description
3675                      "IP address";3713                      "IP address";
3676                    leaf ipv4-address {3714                    leaf ipv4-address {
3677                      type inet:ipv4-address-no-zone;3715                      type inet:ipv4-address-no-zone;
3678                      description3716                      description
3679                        "IP address";3717                        "IP address";
3680                    }3718                    }
3681                    leaf assigned-number {3719                    leaf assigned-number {
3682                      type uint32 {3720                      type uint32 {
3683                        range "0..65535" {3721                        range "0..65535" {
3684                          description3722                          description
3685                            "IP-address:nn (hex or decimal format)";3723                            "IP-address:nn (hex or decimal format)";
3686                        }3724                        }
3687                      }3725                      }
3688                      description3726                      description
3689                        "IP-address:nn (hex or decimal format)";3727                        "IP-address:nn (hex or decimal format)";
3690                    }3728                    }
3691                  }3729                  }
3692                }3730                }
3693                container none {3731                container none {
3694                  presence "Indicates a none node is configured.";3732                  presence "Indicates a none node is configured.";
3695                  description3733                  description
3696                    "Withhold BGP RTs";3734                    "Withhold BGP RTs";
3697                }3735                }
3698              }3736              }
3699            }3737            }
3700            leaf table-policy {3738            leaf table-policy {
3701              type xr:Route-policy-name;3739              type xr:Route-policy-name;
3702              description3740              description
3703                "Configure policy for installation of forwarding data to L2FIB";3741                "Configure policy for installation of forwarding data to L2FIB";
3704            }3742            }
3705            container implicit-import-disable {3743            container implicit-import-disable {
3706              presence "Indicates a implicit-import-disable node is configured.";3744              presence "Indicates a implicit-import-disable node is configured.";
3707              description3745              description
3708                "Disable BGP implicit import";3746                "Disable BGP implicit import";
3709            }3747            }
3710            container route-policy {3748            container route-policy {
3711              description3749              description
3712                "Apply route policy";3750                "Apply route policy";
3713              leaf export {3751              leaf export {
3714                type xr:Route-policy-name;3752                type xr:Route-policy-name;
3715                description3753                description
3716                  "Export route policy";3754                  "Export route policy";
3717              }3755              }
3718              leaf import {3756              leaf import {
3719                type xr:Route-policy-name;3757                type xr:Route-policy-name;
3720                description3758                description
3721                  "Import route policy";3759                  "Import route policy";
3722              }3760              }
3723            }3761            }
3724          }3762          }
3725          leaf description {3763          leaf description {
3726            type string {3764            type string {
3727              length "1..64" {3765              length "1..64" {
3728                description3766                description
3729                  "EVPN Instance description string";3767                  "EVPN Instance description string";
3730              }3768              }
3731            }3769            }
3732            description3770            description
3733              "Description for this EVPN Instance";3771              "Description for this EVPN Instance";
3734          }3772          }
nn3773          container load-balancing {
3774            presence "Indicates a load-balancing node is configured.";
3775            description
3776              "Configure EVPN Instance load-balancing";
3777            container flow-label {
3778              description
3779                "Flow Label load balancing";
3780              container static {
3781                presence "Indicates a static node is configured.";
3782                description
3783                  "Static configuration of Flow Label";
3784              }
3785            }
3786          }
3735          container ecmp-disable-deprecated {3787          container ecmp-disable-deprecated {
3736            presence "Indicates a ecmp-disable-deprecated node is configured.";3788            presence "Indicates a ecmp-disable-deprecated node is configured.";
3737            description3789            description
3738              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";3790              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
3739          }3791          }
3740          container preferred-nexthop {3792          container preferred-nexthop {
3741            description3793            description
3742              "Elect unique active path from ECMP candidate list";3794              "Elect unique active path from ECMP candidate list";
3743            container lowest-ip {3795            container lowest-ip {
3744              must "not(../highest-ip or ../modulo)";3796              must "not(../highest-ip or ../modulo)";
3745              presence "Indicates a lowest-ip node is configured.";3797              presence "Indicates a lowest-ip node is configured.";
3746              description3798              description
3747                "Lowest nexthop IP is active";3799                "Lowest nexthop IP is active";
3748            }3800            }
3749            container highest-ip {3801            container highest-ip {
3750              must "not(../lowest-ip or ../modulo)";3802              must "not(../lowest-ip or ../modulo)";
3751              presence "Indicates a highest-ip node is configured.";3803              presence "Indicates a highest-ip node is configured.";
3752              description3804              description
3753                "Highest nexthop IP is active";3805                "Highest nexthop IP is active";
3754            }3806            }
3755            container modulo {3807            container modulo {
3756              must "not(../lowest-ip or ../highest-ip)";3808              must "not(../lowest-ip or ../highest-ip)";
3757              presence "Indicates a modulo node is configured.";3809              presence "Indicates a modulo node is configured.";
3758              description3810              description
3759                "EVI modulo of nexthops cardinality is active";3811                "EVI modulo of nexthops cardinality is active";
3760            }3812            }
3761          }3813          }
nn3814          container advertise-mac {
3815            presence "Indicates a advertise-mac node is configured.";
3816            description
3817              "Configure EVPN Instance MAC advertisement";
3818            container bvi-mac {
3819              presence "Indicates a bvi-mac node is configured.";
3820              description
3821                "Advertise local MAC and BVI MAC routes";
3822            }
3823          }
3824          container unknown-unicast-suppression {
3825            presence "Indicates a unknown-unicast-suppression node is configured.";
3826            description
3827              "Enabling unknown unicast suppression";
3828          }
3829          container control-word-disable {
3830            presence "Indicates a control-word-disable node is configured.";
3831            description
3832              "Disabling control-word";
3833          }
3762          container ignore-mtu-mismatch {3834          container ignore-mtu-mismatch {
3763            presence "Indicates a ignore-mtu-mismatch node is configured.";3835            presence "Indicates a ignore-mtu-mismatch node is configured.";
3764            description3836            description
3765              "Ignore mismatch of local and remote MTUs";3837              "Ignore mismatch of local and remote MTUs";
3766            container disable-deprecated {3838            container disable-deprecated {
3767              presence "Indicates a disable-deprecated node is configured.";3839              presence "Indicates a disable-deprecated node is configured.";
3768              description3840              description
3769                "Disables ingoring mismatch of local and remote MTUs (deprecated)";3841                "Disables ingoring mismatch of local and remote MTUs (deprecated)";
3770            }3842            }
3771          }3843          }
3772          container enforce-mtu-match {3844          container enforce-mtu-match {
3773            presence "Indicates a enforce-mtu-match node is configured.";3845            presence "Indicates a enforce-mtu-match node is configured.";
3774            description3846            description
3775              "Enforce matching of local and remote MTUs";3847              "Enforce matching of local and remote MTUs";
3776          }3848          }
3777          container transmit-mtu-zero {3849          container transmit-mtu-zero {
3778            presence "Indicates a transmit-mtu-zero node is configured.";3850            presence "Indicates a transmit-mtu-zero node is configured.";
3779            description3851            description
3780              "Transmit MTU zero to remote instead of actual local MTU";3852              "Transmit MTU zero to remote instead of actual local MTU";
3781            container disable-deprecated {3853            container disable-deprecated {
3782              presence "Indicates a disable-deprecated node is configured.";3854              presence "Indicates a disable-deprecated node is configured.";
3783              description3855              description
3784                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";3856                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
3785            }3857            }
3786          }3858          }
3787          container transmit-l2-mtu {3859          container transmit-l2-mtu {
3788            presence "Indicates a transmit-l2-mtu node is configured.";3860            presence "Indicates a transmit-l2-mtu node is configured.";
3789            description3861            description
3790              "Transmit L2 MTU of attachment circuit";3862              "Transmit L2 MTU of attachment circuit";
3791          }3863          }
nn3864          container re-origination-disable {
3865            presence "Indicates a re-origination-disable node is configured.";
3866            description
3867              "Disable route re-origination";
3868          }
3792          container vrf {3869          container vrf {
3793            description3870            description
3794              "Enable EVPN instance for layer-3 route synchronization.";3871              "Enable EVPN instance for layer-3 route synchronization.";
3795            container default {3872            container default {
3796              presence "Indicates a default node is configured.";3873              presence "Indicates a default node is configured.";
3797              description3874              description
3798                "EVPN Instance for the default VRF";3875                "EVPN Instance for the default VRF";
3799            }3876            }
3800          }3877          }
n3801          container locators {n3878          container multicast {
3879            presence "Indicates a multicast node is configured.";
3880            description
3881              "Configure EVPN Instance Multicast";
3882            container source-connected {
3883              presence "Indicates a source-connected node is configured.";
3884              description
3885                "Multicast traffic source connected";
3886            }
3887          }
3888          container proxy {
3889            presence "Indicates a proxy node is configured.";
3890            description
3891              "Configure EVPN Instance Proxy";
3892            container igmp-snooping {
3893              presence "Indicates a igmp-snooping node is configured.";
3894              description
3895                "Proxy mode for IGMP-Snooping (selective multicast)";
3896            }
3897          }
3898          container etree {
3899            presence "Indicates a etree node is configured.";
3900            description
3901              "Configure EVPN Instance E-Tree";
3902            container leaf {
3903              presence "Indicates a leaf node is configured.";
3904              description
3905                "Designate EVPN Instance as EVPN E-Tree Leaf Site";
3906            }
3907            container rt-leaf {
3908              presence "Indicates a rt-leaf node is configured.";
3909              description
3910                "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";
3911            }
3912          }
3913          leaf locator {
3914            type xr:Cisco-ios-xr-string {
3915              length "1..58" {
3916                description
3917                  "Specify locator name";
3918              }
3919              pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
3920            }
3802            description3921            description
3803              "EVI locator to use for EVPN SID allocation";3922              "EVI locator to use for EVPN SID allocation";
n3804            list locator {n3923          }
3805              key "locator-name";3924          container vpws-single-active-backup-suppression {
3925            presence "Indicates a vpws-single-active-backup-suppression node is configured.";
3806              description3926            description
3807                "EVI locator to use for EVPN SID allocation";3927              "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";
3808              leaf locator-name {
3809                type xr:Cisco-ios-xr-string {
3810                  length "1..58" {
3811                    description
3812                      "Specify locator name";
3813                  }
3814                  pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
3815                }
3816                description
3817                  "EVI locator to use for EVPN SID allocation";
3818              }
3819              container usid {
3820                description
3821                  "Configure the uSID wide function knob";
3822                container allocation {
3823                  description
3824                    "Set the allocation types associated with uSID";
3825                  container wide-local-id-block {
3826                    presence "Indicates a wide-local-id-block node is configured.";
3827                    description
3828                      "Enable uSID wide function knob for the locator";
3829                  }
3830                }
3831              }
3832            }
3833          }3928          }
3834          container bvi-coupled-mode {3929          container bvi-coupled-mode {
3835            presence "Indicates a bvi-coupled-mode node is configured.";3930            presence "Indicates a bvi-coupled-mode node is configured.";
3836            description3931            description
3837              "Couples BVI state to the core EVPN Instance state";3932              "Couples BVI state to the core EVPN Instance state";
3838          }3933          }
3839        }3934        }
3840      }3935      }
3841      list evi {3936      list evi {
3842        key "vpn-id";3937        key "vpn-id";
3843        description3938        description
3844          "Configure EVPN Instance VPN ID";3939          "Configure EVPN Instance VPN ID";
3845        leaf vpn-id {3940        leaf vpn-id {
3846          type uint32 {3941          type uint32 {
3847            range "1..65534" {3942            range "1..65534" {
3848              description3943              description
3849                "EVPN Instance VPN ID value";3944                "EVPN Instance VPN ID value";
3850            }3945            }
3851          }3946          }
3852          description3947          description
3853            "Configure EVPN Instance VPN ID";3948            "Configure EVPN Instance VPN ID";
3854        }3949        }
3855        container bgp {3950        container bgp {
3856          presence "Indicates a bgp node is configured.";3951          presence "Indicates a bgp node is configured.";
3857          description3952          description
3858            "Configure BGP";3953            "Configure BGP";
3859          container rd {3954          container rd {
3860            description3955            description
3861              "Set the Route Distinguisher";3956              "Set the Route Distinguisher";
3862            leaf two-byte-as-number {3957            leaf two-byte-as-number {
3863              type uint32 {3958              type uint32 {
3864                range "1..65535" {3959                range "1..65535" {
3865                  description3960                  description
3866                    "Two Byte AS Number";3961                    "Two Byte AS Number";
3867                }3962                }
3868              }3963              }
n3869              must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n3964              must "not(../four-byte-as-number or ../ipv4-address)";
3870              description3965              description
3871                "Two Byte AS Number";3966                "Two Byte AS Number";
3872            }3967            }
3873            leaf two-byte-as-assigned-number {3968            leaf two-byte-as-assigned-number {
3874              type uint32 {3969              type uint32 {
3875                range "0..4294967295" {3970                range "0..4294967295" {
3876                  description3971                  description
3877                    "AS:nn (hex or decimal format)";3972                    "AS:nn (hex or decimal format)";
3878                }3973                }
3879              }3974              }
3880              must "../two-byte-as-number";3975              must "../two-byte-as-number";
3881              description3976              description
3882                "AS:nn (hex or decimal format)";3977                "AS:nn (hex or decimal format)";
3883            }3978            }
3884            leaf four-byte-as-number {3979            leaf four-byte-as-number {
3885              type uint32 {3980              type uint32 {
3886                range "65536..4294967295" {3981                range "65536..4294967295" {
3887                  description3982                  description
3888                    "Four Byte AS number";3983                    "Four Byte AS number";
3889                }3984                }
3890              }3985              }
n3891              must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n3986              must "not(../two-byte-as-number or ../ipv4-address)";
3892              description3987              description
3893                "Four Byte AS number";3988                "Four Byte AS number";
3894            }3989            }
3895            leaf four-byte-as-assigned-number {3990            leaf four-byte-as-assigned-number {
3896              type uint32 {3991              type uint32 {
3897                range "0..65535" {3992                range "0..65535" {
3898                  description3993                  description
3899                    "AS:nn (hex or decimal format)";3994                    "AS:nn (hex or decimal format)";
3900                }3995                }
3901              }3996              }
3902              must "../four-byte-as-number";3997              must "../four-byte-as-number";
3903              description3998              description
3904                "AS:nn (hex or decimal format)";3999                "AS:nn (hex or decimal format)";
3905            }4000            }
3906            leaf ipv4-address {4001            leaf ipv4-address {
3907              type inet:ipv4-address-no-zone;4002              type inet:ipv4-address-no-zone;
n3908              must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n4003              must "not(../two-byte-as-number or ../four-byte-as-number)";
3909              description4004              description
3910                "IP address";4005                "IP address";
3911            }4006            }
3912            leaf ipv4-address-assigned-number {4007            leaf ipv4-address-assigned-number {
3913              type uint32 {4008              type uint32 {
3914                range "0..65535" {4009                range "0..65535" {
3915                  description4010                  description
3916                    "IP-address:nn (hex or decimal format)";4011                    "IP-address:nn (hex or decimal format)";
3917                }4012                }
3918              }4013              }
3919              must "../ipv4-address";4014              must "../ipv4-address";
3920              description4015              description
3921                "IP-address:nn (hex or decimal format)";4016                "IP-address:nn (hex or decimal format)";
3922            }4017            }
3923          }4018          }
3924          container route-target {4019          container route-target {
3925            description4020            description
3926              "Set the Route Target";4021              "Set the Route Target";
3927            container two-byte-as-rts {4022            container two-byte-as-rts {
3928              description4023              description
3929                "Two Byte AS Number Route Target";4024                "Two Byte AS Number Route Target";
3930              list two-byte-as-rt {4025              list two-byte-as-rt {
3931                key "two-byte-as-number assigned-number";4026                key "two-byte-as-number assigned-number";
3932                description4027                description
3933                  "Two Byte AS Number Route Target";4028                  "Two Byte AS Number Route Target";
3934                leaf two-byte-as-number {4029                leaf two-byte-as-number {
3935                  type uint32 {4030                  type uint32 {
3936                    range "1..65535";4031                    range "1..65535";
3937                  }4032                  }
3938                  description4033                  description
3939                    "Two Byte AS Number";4034                    "Two Byte AS Number";
3940                }4035                }
3941                leaf assigned-number {4036                leaf assigned-number {
3942                  type uint32 {4037                  type uint32 {
3943                    range "0..4294967295" {4038                    range "0..4294967295" {
3944                      description4039                      description
3945                        "AS:nn (hex or decimal format)";4040                        "AS:nn (hex or decimal format)";
3946                    }4041                    }
3947                  }4042                  }
3948                  description4043                  description
3949                    "AS:nn (hex or decimal format)";4044                    "AS:nn (hex or decimal format)";
3950                }4045                }
3951              }4046              }
3952            }4047            }
3953            container four-byte-as-rts {4048            container four-byte-as-rts {
3954              description4049              description
3955                "Four Byte AS number Route Target";4050                "Four Byte AS number Route Target";
3956              list four-byte-as-rt {4051              list four-byte-as-rt {
3957                key "four-byte-as-number assigned-number";4052                key "four-byte-as-number assigned-number";
3958                description4053                description
3959                  "Four Byte AS number Route Target";4054                  "Four Byte AS number Route Target";
3960                leaf four-byte-as-number {4055                leaf four-byte-as-number {
3961                  type uint32 {4056                  type uint32 {
3962                    range "65536..4294967295";4057                    range "65536..4294967295";
3963                  }4058                  }
3964                  description4059                  description
3965                    "Four Byte AS number";4060                    "Four Byte AS number";
3966                }4061                }
3967                leaf assigned-number {4062                leaf assigned-number {
3968                  type uint32 {4063                  type uint32 {
3969                    range "0..65535" {4064                    range "0..65535" {
3970                      description4065                      description
3971                        "AS:nn (hex or decimal format)";4066                        "AS:nn (hex or decimal format)";
3972                    }4067                    }
3973                  }4068                  }
3974                  description4069                  description
3975                    "AS:nn (hex or decimal format)";4070                    "AS:nn (hex or decimal format)";
3976                }4071                }
3977              }4072              }
3978            }4073            }
3979            container ipv4-address-rts {4074            container ipv4-address-rts {
3980              description4075              description
3981                "IP address Route Target";4076                "IP address Route Target";
3982              list ipv4-address-rt {4077              list ipv4-address-rt {
3983                key "ipv4-address assigned-number";4078                key "ipv4-address assigned-number";
3984                description4079                description
3985                  "IP address";4080                  "IP address";
3986                leaf ipv4-address {4081                leaf ipv4-address {
3987                  type inet:ipv4-address-no-zone;4082                  type inet:ipv4-address-no-zone;
3988                  description4083                  description
3989                    "IP address";4084                    "IP address";
3990                }4085                }
3991                leaf assigned-number {4086                leaf assigned-number {
3992                  type uint32 {4087                  type uint32 {
3993                    range "0..65535" {4088                    range "0..65535" {
3994                      description4089                      description
3995                        "IP-address:nn (hex or decimal format)";4090                        "IP-address:nn (hex or decimal format)";
3996                    }4091                    }
3997                  }4092                  }
3998                  description4093                  description
3999                    "IP-address:nn (hex or decimal format)";4094                    "IP-address:nn (hex or decimal format)";
4000                }4095                }
4001              }4096              }
4002            }4097            }
4003            container none {4098            container none {
4004              presence "Indicates a none node is configured.";4099              presence "Indicates a none node is configured.";
4005              description4100              description
4006                "Withhold BGP RTs";4101                "Withhold BGP RTs";
4007            }4102            }
4008            container import {4103            container import {
4009              description4104              description
4010                "Import Route Target";4105                "Import Route Target";
4011              container two-byte-as-rts {4106              container two-byte-as-rts {
4012                description4107                description
4013                  "Two Byte AS Number Route Target";4108                  "Two Byte AS Number Route Target";
4014                list two-byte-as-rt {4109                list two-byte-as-rt {
4015                  key "two-byte-as-number assigned-number";4110                  key "two-byte-as-number assigned-number";
4016                  description4111                  description
4017                    "Two Byte AS Number Route Target";4112                    "Two Byte AS Number Route Target";
4018                  leaf two-byte-as-number {4113                  leaf two-byte-as-number {
4019                    type uint32 {4114                    type uint32 {
4020                      range "1..65535";4115                      range "1..65535";
4021                    }4116                    }
4022                    description4117                    description
4023                      "Two Byte AS Number";4118                      "Two Byte AS Number";
4024                  }4119                  }
4025                  leaf assigned-number {4120                  leaf assigned-number {
4026                    type uint32 {4121                    type uint32 {
4027                      range "0..4294967295" {4122                      range "0..4294967295" {
4028                        description4123                        description
4029                          "AS:nn (hex or decimal format)";4124                          "AS:nn (hex or decimal format)";
4030                      }4125                      }
4031                    }4126                    }
4032                    description4127                    description
4033                      "AS:nn (hex or decimal format)";4128                      "AS:nn (hex or decimal format)";
4034                  }4129                  }
4035                }4130                }
4036              }4131              }
4037              container four-byte-as-rts {4132              container four-byte-as-rts {
4038                description4133                description
4039                  "Four Byte AS number Route Target";4134                  "Four Byte AS number Route Target";
4040                list four-byte-as-rt {4135                list four-byte-as-rt {
4041                  key "four-byte-as-number assigned-number";4136                  key "four-byte-as-number assigned-number";
4042                  description4137                  description
4043                    "Four Byte AS number Route Target";4138                    "Four Byte AS number Route Target";
4044                  leaf four-byte-as-number {4139                  leaf four-byte-as-number {
4045                    type uint32 {4140                    type uint32 {
4046                      range "65536..4294967295";4141                      range "65536..4294967295";
4047                    }4142                    }
4048                    description4143                    description
4049                      "Four Byte AS number";4144                      "Four Byte AS number";
4050                  }4145                  }
4051                  leaf assigned-number {4146                  leaf assigned-number {
4052                    type uint32 {4147                    type uint32 {
4053                      range "0..65535" {4148                      range "0..65535" {
4054                        description4149                        description
4055                          "AS:nn (hex or decimal format)";4150                          "AS:nn (hex or decimal format)";
4056                      }4151                      }
4057                    }4152                    }
4058                    description4153                    description
4059                      "AS:nn (hex or decimal format)";4154                      "AS:nn (hex or decimal format)";
4060                  }4155                  }
4061                }4156                }
4062              }4157              }
4063              container ipv4-address-rts {4158              container ipv4-address-rts {
4064                description4159                description
4065                  "IP address Route Target";4160                  "IP address Route Target";
4066                list ipv4-address-rt {4161                list ipv4-address-rt {
4067                  key "ipv4-address assigned-number";4162                  key "ipv4-address assigned-number";
4068                  description4163                  description
4069                    "IP address";4164                    "IP address";
4070                  leaf ipv4-address {4165                  leaf ipv4-address {
4071                    type inet:ipv4-address-no-zone;4166                    type inet:ipv4-address-no-zone;
4072                    description4167                    description
4073                      "IP address";4168                      "IP address";
4074                  }4169                  }
4075                  leaf assigned-number {4170                  leaf assigned-number {
4076                    type uint32 {4171                    type uint32 {
4077                      range "0..65535" {4172                      range "0..65535" {
4078                        description4173                        description
4079                          "IP-address:nn (hex or decimal format)";4174                          "IP-address:nn (hex or decimal format)";
4080                      }4175                      }
4081                    }4176                    }
4082                    description4177                    description
4083                      "IP-address:nn (hex or decimal format)";4178                      "IP-address:nn (hex or decimal format)";
4084                  }4179                  }
4085                }4180                }
4086              }4181              }
4087              container none {4182              container none {
4088                presence "Indicates a none node is configured.";4183                presence "Indicates a none node is configured.";
4089                description4184                description
4090                  "Withhold BGP RTs";4185                  "Withhold BGP RTs";
4091              }4186              }
4092            }4187            }
4093            container export {4188            container export {
4094              description4189              description
4095                "Export Route Target";4190                "Export Route Target";
4096              container two-byte-as-rts {4191              container two-byte-as-rts {
4097                description4192                description
4098                  "Two Byte AS Number Route Target";4193                  "Two Byte AS Number Route Target";
4099                list two-byte-as-rt {4194                list two-byte-as-rt {
4100                  key "two-byte-as-number assigned-number";4195                  key "two-byte-as-number assigned-number";
4101                  description4196                  description
4102                    "Two Byte AS Number Route Target";4197                    "Two Byte AS Number Route Target";
4103                  leaf two-byte-as-number {4198                  leaf two-byte-as-number {
4104                    type uint32 {4199                    type uint32 {
4105                      range "1..65535";4200                      range "1..65535";
4106                    }4201                    }
4107                    description4202                    description
4108                      "Two Byte AS Number";4203                      "Two Byte AS Number";
4109                  }4204                  }
4110                  leaf assigned-number {4205                  leaf assigned-number {
4111                    type uint32 {4206                    type uint32 {
4112                      range "0..4294967295" {4207                      range "0..4294967295" {
4113                        description4208                        description
4114                          "AS:nn (hex or decimal format)";4209                          "AS:nn (hex or decimal format)";
4115                      }4210                      }
4116                    }4211                    }
4117                    description4212                    description
4118                      "AS:nn (hex or decimal format)";4213                      "AS:nn (hex or decimal format)";
4119                  }4214                  }
4120                }4215                }
4121              }4216              }
4122              container four-byte-as-rts {4217              container four-byte-as-rts {
4123                description4218                description
4124                  "Four Byte AS number Route Target";4219                  "Four Byte AS number Route Target";
4125                list four-byte-as-rt {4220                list four-byte-as-rt {
4126                  key "four-byte-as-number assigned-number";4221                  key "four-byte-as-number assigned-number";
4127                  description4222                  description
4128                    "Four Byte AS number Route Target";4223                    "Four Byte AS number Route Target";
4129                  leaf four-byte-as-number {4224                  leaf four-byte-as-number {
4130                    type uint32 {4225                    type uint32 {
4131                      range "65536..4294967295";4226                      range "65536..4294967295";
4132                    }4227                    }
4133                    description4228                    description
4134                      "Four Byte AS number";4229                      "Four Byte AS number";
4135                  }4230                  }
4136                  leaf assigned-number {4231                  leaf assigned-number {
4137                    type uint32 {4232                    type uint32 {
4138                      range "0..65535" {4233                      range "0..65535" {
4139                        description4234                        description
4140                          "AS:nn (hex or decimal format)";4235                          "AS:nn (hex or decimal format)";
4141                      }4236                      }
4142                    }4237                    }
4143                    description4238                    description
4144                      "AS:nn (hex or decimal format)";4239                      "AS:nn (hex or decimal format)";
4145                  }4240                  }
4146                }4241                }
4147              }4242              }
4148              container ipv4-address-rts {4243              container ipv4-address-rts {
4149                description4244                description
4150                  "IP address Route Target";4245                  "IP address Route Target";
4151                list ipv4-address-rt {4246                list ipv4-address-rt {
4152                  key "ipv4-address assigned-number";4247                  key "ipv4-address assigned-number";
4153                  description4248                  description
4154                    "IP address";4249                    "IP address";
4155                  leaf ipv4-address {4250                  leaf ipv4-address {
4156                    type inet:ipv4-address-no-zone;4251                    type inet:ipv4-address-no-zone;
4157                    description4252                    description
4158                      "IP address";4253                      "IP address";
4159                  }4254                  }
4160                  leaf assigned-number {4255                  leaf assigned-number {
4161                    type uint32 {4256                    type uint32 {
4162                      range "0..65535" {4257                      range "0..65535" {
4163                        description4258                        description
4164                          "IP-address:nn (hex or decimal format)";4259                          "IP-address:nn (hex or decimal format)";
4165                      }4260                      }
4166                    }4261                    }
4167                    description4262                    description
4168                      "IP-address:nn (hex or decimal format)";4263                      "IP-address:nn (hex or decimal format)";
4169                  }4264                  }
4170                }4265                }
4171              }4266              }
4172              container none {4267              container none {
4173                presence "Indicates a none node is configured.";4268                presence "Indicates a none node is configured.";
4174                description4269                description
4175                  "Withhold BGP RTs";4270                  "Withhold BGP RTs";
4176              }4271              }
4177            }4272            }
4178          }4273          }
4179          leaf table-policy {4274          leaf table-policy {
4180            type xr:Route-policy-name;4275            type xr:Route-policy-name;
4181            description4276            description
4182              "Configure policy for installation of forwarding data to L2FIB";4277              "Configure policy for installation of forwarding data to L2FIB";
4183          }4278          }
4184          container implicit-import-disable {4279          container implicit-import-disable {
4185            presence "Indicates a implicit-import-disable node is configured.";4280            presence "Indicates a implicit-import-disable node is configured.";
4186            description4281            description
4187              "Disable BGP implicit import";4282              "Disable BGP implicit import";
4188          }4283          }
4189          container route-policy {4284          container route-policy {
4190            description4285            description
4191              "Apply route policy";4286              "Apply route policy";
4192            leaf export {4287            leaf export {
4193              type xr:Route-policy-name;4288              type xr:Route-policy-name;
4194              description4289              description
4195                "Export route policy";4290                "Export route policy";
4196            }4291            }
4197            leaf import {4292            leaf import {
4198              type xr:Route-policy-name;4293              type xr:Route-policy-name;
4199              description4294              description
4200                "Import route policy";4295                "Import route policy";
4201            }4296            }
4202          }4297          }
4203        }4298        }
4204        leaf description {4299        leaf description {
4205          type string {4300          type string {
4206            length "1..64" {4301            length "1..64" {
4207              description4302              description
4208                "EVPN Instance description string";4303                "EVPN Instance description string";
4209            }4304            }
4210          }4305          }
4211          description4306          description
4212            "Description for this EVPN Instance";4307            "Description for this EVPN Instance";
nn4308        }
4309        container load-balancing {
4310          presence "Indicates a load-balancing node is configured.";
4311          description
4312            "Configure EVPN Instance load-balancing";
4313          container flow-label {
4314            description
4315              "Flow Label load balancing";
4316            container static {
4317              presence "Indicates a static node is configured.";
4318              description
4319                "Static configuration of Flow Label";
4320            }
4321          }
4213        }4322        }
4214        container ecmp-disable-deprecated {4323        container ecmp-disable-deprecated {
4215          presence "Indicates a ecmp-disable-deprecated node is configured.";4324          presence "Indicates a ecmp-disable-deprecated node is configured.";
4216          description4325          description
4217            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";4326            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
4218        }4327        }
4219        container preferred-nexthop {4328        container preferred-nexthop {
4220          description4329          description
4221            "Elect unique active path from ECMP candidate list";4330            "Elect unique active path from ECMP candidate list";
4222          container lowest-ip {4331          container lowest-ip {
4223            must "not(../highest-ip or ../modulo)";4332            must "not(../highest-ip or ../modulo)";
4224            presence "Indicates a lowest-ip node is configured.";4333            presence "Indicates a lowest-ip node is configured.";
4225            description4334            description
4226              "Lowest nexthop IP is active";4335              "Lowest nexthop IP is active";
4227          }4336          }
4228          container highest-ip {4337          container highest-ip {
4229            must "not(../lowest-ip or ../modulo)";4338            must "not(../lowest-ip or ../modulo)";
4230            presence "Indicates a highest-ip node is configured.";4339            presence "Indicates a highest-ip node is configured.";
4231            description4340            description
4232              "Highest nexthop IP is active";4341              "Highest nexthop IP is active";
4233          }4342          }
4234          container modulo {4343          container modulo {
4235            must "not(../lowest-ip or ../highest-ip)";4344            must "not(../lowest-ip or ../highest-ip)";
4236            presence "Indicates a modulo node is configured.";4345            presence "Indicates a modulo node is configured.";
4237            description4346            description
4238              "EVI modulo of nexthops cardinality is active";4347              "EVI modulo of nexthops cardinality is active";
4239          }4348          }
4240        }4349        }
nn4350        container advertise-mac {
4351          presence "Indicates a advertise-mac node is configured.";
4352          description
4353            "Configure EVPN Instance MAC advertisement";
4354          container bvi-mac {
4355            presence "Indicates a bvi-mac node is configured.";
4356            description
4357              "Advertise local MAC and BVI MAC routes";
4358          }
4359        }
4360        container unknown-unicast-suppression {
4361          presence "Indicates a unknown-unicast-suppression node is configured.";
4362          description
4363            "Enabling unknown unicast suppression";
4364        }
4365        container control-word-disable {
4366          presence "Indicates a control-word-disable node is configured.";
4367          description
4368            "Disabling control-word";
4369        }
4241        container ignore-mtu-mismatch {4370        container ignore-mtu-mismatch {
4242          presence "Indicates a ignore-mtu-mismatch node is configured.";4371          presence "Indicates a ignore-mtu-mismatch node is configured.";
4243          description4372          description
4244            "Ignore mismatch of local and remote MTUs";4373            "Ignore mismatch of local and remote MTUs";
4245          container disable-deprecated {4374          container disable-deprecated {
4246            presence "Indicates a disable-deprecated node is configured.";4375            presence "Indicates a disable-deprecated node is configured.";
4247            description4376            description
4248              "Disables ingoring mismatch of local and remote MTUs (deprecated)";4377              "Disables ingoring mismatch of local and remote MTUs (deprecated)";
4249          }4378          }
4250        }4379        }
4251        container enforce-mtu-match {4380        container enforce-mtu-match {
4252          presence "Indicates a enforce-mtu-match node is configured.";4381          presence "Indicates a enforce-mtu-match node is configured.";
4253          description4382          description
4254            "Enforce matching of local and remote MTUs";4383            "Enforce matching of local and remote MTUs";
4255        }4384        }
4256        container transmit-mtu-zero {4385        container transmit-mtu-zero {
4257          presence "Indicates a transmit-mtu-zero node is configured.";4386          presence "Indicates a transmit-mtu-zero node is configured.";
4258          description4387          description
4259            "Transmit MTU zero to remote instead of actual local MTU";4388            "Transmit MTU zero to remote instead of actual local MTU";
4260          container disable-deprecated {4389          container disable-deprecated {
4261            presence "Indicates a disable-deprecated node is configured.";4390            presence "Indicates a disable-deprecated node is configured.";
4262            description4391            description
4263              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";4392              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
4264          }4393          }
4265        }4394        }
4266        container transmit-l2-mtu {4395        container transmit-l2-mtu {
4267          presence "Indicates a transmit-l2-mtu node is configured.";4396          presence "Indicates a transmit-l2-mtu node is configured.";
4268          description4397          description
4269            "Transmit L2 MTU of attachment circuit";4398            "Transmit L2 MTU of attachment circuit";
4270        }4399        }
nn4400        container re-origination-disable {
4401          presence "Indicates a re-origination-disable node is configured.";
4402          description
4403            "Disable route re-origination";
4404        }
4271        container vrf {4405        container vrf {
4272          description4406          description
4273            "Enable EVPN instance for layer-3 route synchronization.";4407            "Enable EVPN instance for layer-3 route synchronization.";
4274          container default {4408          container default {
4275            presence "Indicates a default node is configured.";4409            presence "Indicates a default node is configured.";
4276            description4410            description
4277              "EVPN Instance for the default VRF";4411              "EVPN Instance for the default VRF";
4278          }4412          }
4279        }4413        }
n4280        container locators {n4414        container multicast {
4415          presence "Indicates a multicast node is configured.";
4416          description
4417            "Configure EVPN Instance Multicast";
4418          container source-connected {
4419            presence "Indicates a source-connected node is configured.";
4420            description
4421              "Multicast traffic source connected";
4422          }
4423        }
4424        container proxy {
4425          presence "Indicates a proxy node is configured.";
4426          description
4427            "Configure EVPN Instance Proxy";
4428          container igmp-snooping {
4429            presence "Indicates a igmp-snooping node is configured.";
4430            description
4431              "Proxy mode for IGMP-Snooping (selective multicast)";
4432          }
4433        }
4434        container etree {
4435          presence "Indicates a etree node is configured.";
4436          description
4437            "Configure EVPN Instance E-Tree";
4438          container leaf {
4439            presence "Indicates a leaf node is configured.";
4440            description
4441              "Designate EVPN Instance as EVPN E-Tree Leaf Site";
4442          }
4443          container rt-leaf {
4444            presence "Indicates a rt-leaf node is configured.";
4445            description
4446              "Designate EVPN Instance as EVPN E-Tree Route-Target Leaf Site";
4447          }
4448        }
4449        leaf locator {
4450          type xr:Cisco-ios-xr-string {
4451            length "1..58" {
4452              description
4453                "Specify locator name";
4454            }
4455            pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
4456          }
4281          description4457          description
4282            "EVI locator to use for EVPN SID allocation";4458            "EVI locator to use for EVPN SID allocation";
n4283          list locator {n4459        }
4284            key "locator-name";4460        container vpws-single-active-backup-suppression {
4461          presence "Indicates a vpws-single-active-backup-suppression node is configured.";
4285            description4462          description
4286              "EVI locator to use for EVPN SID allocation";4463            "Disables Non-DF EVI/EAD routes from being advertised in EVPN-VPWS Single-Active. Used for backwards-compatibility.";
4287            leaf locator-name {
4288              type xr:Cisco-ios-xr-string {
4289                length "1..58" {
4290                  description
4291                    "Specify locator name";
4292                }
4293                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
4294              }
4295              description
4296                "EVI locator to use for EVPN SID allocation";
4297            }
4298            container usid {
4299              description
4300                "Configure the uSID wide function knob";
4301              container allocation {
4302                description
4303                  "Set the allocation types associated with uSID";
4304                container wide-local-id-block {
4305                  presence "Indicates a wide-local-id-block node is configured.";
4306                  description
4307                    "Enable uSID wide function knob for the locator";
4308                }
4309              }
4310            }
4311          }
4312        }4464        }
4313        container bvi-coupled-mode {4465        container bvi-coupled-mode {
4314          presence "Indicates a bvi-coupled-mode node is configured.";4466          presence "Indicates a bvi-coupled-mode node is configured.";
4315          description4467          description
4316            "Couples BVI state to the core EVPN Instance state";4468            "Couples BVI state to the core EVPN Instance state";
4317        }4469        }
4318      }4470      }
4319    }4471    }
4320    container vnis {4472    container vnis {
4321      description4473      description
4322        "Configure EVPN VNI";4474        "Configure EVPN VNI";
4323      container stitching {4475      container stitching {
4324        description4476        description
4325          "Treat EVPN Instance as Stitching side";4477          "Treat EVPN Instance as Stitching side";
4326        list vni {4478        list vni {
4327          key "vni-id";4479          key "vni-id";
4328          description4480          description
4329            "Configure EVPN VNI";4481            "Configure EVPN VNI";
4330          leaf vni-id {4482          leaf vni-id {
4331            type uint32 {4483            type uint32 {
4332              range "1..16777215" {4484              range "1..16777215" {
4333                description4485                description
4334                  "EVPN VNI value";4486                  "EVPN VNI value";
4335              }4487              }
4336            }4488            }
4337            description4489            description
4338              "Configure EVPN VNI";4490              "Configure EVPN VNI";
4339          }4491          }
4340          container bgp {4492          container bgp {
4341            presence "Indicates a bgp node is configured.";4493            presence "Indicates a bgp node is configured.";
4342            description4494            description
4343              "Configure BGP";4495              "Configure BGP";
4344            container rd {4496            container rd {
4345              description4497              description
4346                "Set the Route Distinguisher";4498                "Set the Route Distinguisher";
4347              leaf two-byte-as-number {4499              leaf two-byte-as-number {
4348                type uint32 {4500                type uint32 {
4349                  range "1..65535" {4501                  range "1..65535" {
4350                    description4502                    description
4351                      "Two Byte AS Number";4503                      "Two Byte AS Number";
4352                  }4504                  }
4353                }4505                }
n4354                must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n4506                must "not(../four-byte-as-number or ../ipv4-address)";
4355                description4507                description
4356                  "Two Byte AS Number";4508                  "Two Byte AS Number";
4357              }4509              }
4358              leaf two-byte-as-assigned-number {4510              leaf two-byte-as-assigned-number {
4359                type uint32 {4511                type uint32 {
4360                  range "0..4294967295" {4512                  range "0..4294967295" {
4361                    description4513                    description
4362                      "AS:nn (hex or decimal format)";4514                      "AS:nn (hex or decimal format)";
4363                  }4515                  }
4364                }4516                }
4365                must "../two-byte-as-number";4517                must "../two-byte-as-number";
4366                description4518                description
4367                  "AS:nn (hex or decimal format)";4519                  "AS:nn (hex or decimal format)";
4368              }4520              }
4369              leaf four-byte-as-number {4521              leaf four-byte-as-number {
4370                type uint32 {4522                type uint32 {
4371                  range "65536..4294967295" {4523                  range "65536..4294967295" {
4372                    description4524                    description
4373                      "Four Byte AS number";4525                      "Four Byte AS number";
4374                  }4526                  }
4375                }4527                }
n4376                must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n4528                must "not(../two-byte-as-number or ../ipv4-address)";
4377                description4529                description
4378                  "Four Byte AS number";4530                  "Four Byte AS number";
4379              }4531              }
4380              leaf four-byte-as-assigned-number {4532              leaf four-byte-as-assigned-number {
4381                type uint32 {4533                type uint32 {
4382                  range "0..65535" {4534                  range "0..65535" {
4383                    description4535                    description
4384                      "AS:nn (hex or decimal format)";4536                      "AS:nn (hex or decimal format)";
4385                  }4537                  }
4386                }4538                }
4387                must "../four-byte-as-number";4539                must "../four-byte-as-number";
4388                description4540                description
4389                  "AS:nn (hex or decimal format)";4541                  "AS:nn (hex or decimal format)";
4390              }4542              }
4391              leaf ipv4-address {4543              leaf ipv4-address {
4392                type inet:ipv4-address-no-zone;4544                type inet:ipv4-address-no-zone;
n4393                must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n4545                must "not(../two-byte-as-number or ../four-byte-as-number)";
4394                description4546                description
4395                  "IP address";4547                  "IP address";
4396              }4548              }
4397              leaf ipv4-address-assigned-number {4549              leaf ipv4-address-assigned-number {
4398                type uint32 {4550                type uint32 {
4399                  range "0..65535" {4551                  range "0..65535" {
4400                    description4552                    description
4401                      "IP-address:nn (hex or decimal format)";4553                      "IP-address:nn (hex or decimal format)";
4402                  }4554                  }
4403                }4555                }
4404                must "../ipv4-address";4556                must "../ipv4-address";
4405                description4557                description
4406                  "IP-address:nn (hex or decimal format)";4558                  "IP-address:nn (hex or decimal format)";
4407              }4559              }
4408            }4560            }
4409            container route-target {4561            container route-target {
4410              description4562              description
4411                "Set the Route Target";4563                "Set the Route Target";
4412              container two-byte-as-rts {4564              container two-byte-as-rts {
4413                description4565                description
4414                  "Two Byte AS Number Route Target";4566                  "Two Byte AS Number Route Target";
4415                list two-byte-as-rt {4567                list two-byte-as-rt {
4416                  key "two-byte-as-number assigned-number";4568                  key "two-byte-as-number assigned-number";
4417                  description4569                  description
4418                    "Two Byte AS Number Route Target";4570                    "Two Byte AS Number Route Target";
4419                  leaf two-byte-as-number {4571                  leaf two-byte-as-number {
4420                    type uint32 {4572                    type uint32 {
4421                      range "1..65535";4573                      range "1..65535";
4422                    }4574                    }
4423                    description4575                    description
4424                      "Two Byte AS Number";4576                      "Two Byte AS Number";
4425                  }4577                  }
4426                  leaf assigned-number {4578                  leaf assigned-number {
4427                    type uint32 {4579                    type uint32 {
4428                      range "0..4294967295" {4580                      range "0..4294967295" {
4429                        description4581                        description
4430                          "AS:nn (hex or decimal format)";4582                          "AS:nn (hex or decimal format)";
4431                      }4583                      }
4432                    }4584                    }
4433                    description4585                    description
4434                      "AS:nn (hex or decimal format)";4586                      "AS:nn (hex or decimal format)";
4435                  }4587                  }
4436                }4588                }
4437              }4589              }
4438              container four-byte-as-rts {4590              container four-byte-as-rts {
4439                description4591                description
4440                  "Four Byte AS number Route Target";4592                  "Four Byte AS number Route Target";
4441                list four-byte-as-rt {4593                list four-byte-as-rt {
4442                  key "four-byte-as-number assigned-number";4594                  key "four-byte-as-number assigned-number";
4443                  description4595                  description
4444                    "Four Byte AS number Route Target";4596                    "Four Byte AS number Route Target";
4445                  leaf four-byte-as-number {4597                  leaf four-byte-as-number {
4446                    type uint32 {4598                    type uint32 {
4447                      range "65536..4294967295";4599                      range "65536..4294967295";
4448                    }4600                    }
4449                    description4601                    description
4450                      "Four Byte AS number";4602                      "Four Byte AS number";
4451                  }4603                  }
4452                  leaf assigned-number {4604                  leaf assigned-number {
4453                    type uint32 {4605                    type uint32 {
4454                      range "0..65535" {4606                      range "0..65535" {
4455                        description4607                        description
4456                          "AS:nn (hex or decimal format)";4608                          "AS:nn (hex or decimal format)";
4457                      }4609                      }
4458                    }4610                    }
4459                    description4611                    description
4460                      "AS:nn (hex or decimal format)";4612                      "AS:nn (hex or decimal format)";
4461                  }4613                  }
4462                }4614                }
4463              }4615              }
4464              container ipv4-address-rts {4616              container ipv4-address-rts {
4465                description4617                description
4466                  "IP address Route Target";4618                  "IP address Route Target";
4467                list ipv4-address-rt {4619                list ipv4-address-rt {
4468                  key "ipv4-address assigned-number";4620                  key "ipv4-address assigned-number";
4469                  description4621                  description
4470                    "IP address";4622                    "IP address";
4471                  leaf ipv4-address {4623                  leaf ipv4-address {
4472                    type inet:ipv4-address-no-zone;4624                    type inet:ipv4-address-no-zone;
4473                    description4625                    description
4474                      "IP address";4626                      "IP address";
4475                  }4627                  }
4476                  leaf assigned-number {4628                  leaf assigned-number {
4477                    type uint32 {4629                    type uint32 {
4478                      range "0..65535" {4630                      range "0..65535" {
4479                        description4631                        description
4480                          "IP-address:nn (hex or decimal format)";4632                          "IP-address:nn (hex or decimal format)";
4481                      }4633                      }
4482                    }4634                    }
4483                    description4635                    description
4484                      "IP-address:nn (hex or decimal format)";4636                      "IP-address:nn (hex or decimal format)";
4485                  }4637                  }
4486                }4638                }
4487              }4639              }
4488              container none {4640              container none {
4489                presence "Indicates a none node is configured.";4641                presence "Indicates a none node is configured.";
4490                description4642                description
4491                  "Withhold BGP RTs";4643                  "Withhold BGP RTs";
4492              }4644              }
4493              container import {4645              container import {
4494                description4646                description
4495                  "Import Route Target";4647                  "Import Route Target";
4496                container two-byte-as-rts {4648                container two-byte-as-rts {
4497                  description4649                  description
4498                    "Two Byte AS Number Route Target";4650                    "Two Byte AS Number Route Target";
4499                  list two-byte-as-rt {4651                  list two-byte-as-rt {
4500                    key "two-byte-as-number assigned-number";4652                    key "two-byte-as-number assigned-number";
4501                    description4653                    description
4502                      "Two Byte AS Number Route Target";4654                      "Two Byte AS Number Route Target";
4503                    leaf two-byte-as-number {4655                    leaf two-byte-as-number {
4504                      type uint32 {4656                      type uint32 {
4505                        range "1..65535";4657                        range "1..65535";
4506                      }4658                      }
4507                      description4659                      description
4508                        "Two Byte AS Number";4660                        "Two Byte AS Number";
4509                    }4661                    }
4510                    leaf assigned-number {4662                    leaf assigned-number {
4511                      type uint32 {4663                      type uint32 {
4512                        range "0..4294967295" {4664                        range "0..4294967295" {
4513                          description4665                          description
4514                            "AS:nn (hex or decimal format)";4666                            "AS:nn (hex or decimal format)";
4515                        }4667                        }
4516                      }4668                      }
4517                      description4669                      description
4518                        "AS:nn (hex or decimal format)";4670                        "AS:nn (hex or decimal format)";
4519                    }4671                    }
4520                  }4672                  }
4521                }4673                }
4522                container four-byte-as-rts {4674                container four-byte-as-rts {
4523                  description4675                  description
4524                    "Four Byte AS number Route Target";4676                    "Four Byte AS number Route Target";
4525                  list four-byte-as-rt {4677                  list four-byte-as-rt {
4526                    key "four-byte-as-number assigned-number";4678                    key "four-byte-as-number assigned-number";
4527                    description4679                    description
4528                      "Four Byte AS number Route Target";4680                      "Four Byte AS number Route Target";
4529                    leaf four-byte-as-number {4681                    leaf four-byte-as-number {
4530                      type uint32 {4682                      type uint32 {
4531                        range "65536..4294967295";4683                        range "65536..4294967295";
4532                      }4684                      }
4533                      description4685                      description
4534                        "Four Byte AS number";4686                        "Four Byte AS number";
4535                    }4687                    }
4536                    leaf assigned-number {4688                    leaf assigned-number {
4537                      type uint32 {4689                      type uint32 {
4538                        range "0..65535" {4690                        range "0..65535" {
4539                          description4691                          description
4540                            "AS:nn (hex or decimal format)";4692                            "AS:nn (hex or decimal format)";
4541                        }4693                        }
4542                      }4694                      }
4543                      description4695                      description
4544                        "AS:nn (hex or decimal format)";4696                        "AS:nn (hex or decimal format)";
4545                    }4697                    }
4546                  }4698                  }
4547                }4699                }
4548                container ipv4-address-rts {4700                container ipv4-address-rts {
4549                  description4701                  description
4550                    "IP address Route Target";4702                    "IP address Route Target";
4551                  list ipv4-address-rt {4703                  list ipv4-address-rt {
4552                    key "ipv4-address assigned-number";4704                    key "ipv4-address assigned-number";
4553                    description4705                    description
4554                      "IP address";4706                      "IP address";
4555                    leaf ipv4-address {4707                    leaf ipv4-address {
4556                      type inet:ipv4-address-no-zone;4708                      type inet:ipv4-address-no-zone;
4557                      description4709                      description
4558                        "IP address";4710                        "IP address";
4559                    }4711                    }
4560                    leaf assigned-number {4712                    leaf assigned-number {
4561                      type uint32 {4713                      type uint32 {
4562                        range "0..65535" {4714                        range "0..65535" {
4563                          description4715                          description
4564                            "IP-address:nn (hex or decimal format)";4716                            "IP-address:nn (hex or decimal format)";
4565                        }4717                        }
4566                      }4718                      }
4567                      description4719                      description
4568                        "IP-address:nn (hex or decimal format)";4720                        "IP-address:nn (hex or decimal format)";
4569                    }4721                    }
4570                  }4722                  }
4571                }4723                }
4572                container none {4724                container none {
4573                  presence "Indicates a none node is configured.";4725                  presence "Indicates a none node is configured.";
4574                  description4726                  description
4575                    "Withhold BGP RTs";4727                    "Withhold BGP RTs";
4576                }4728                }
4577              }4729              }
4578              container export {4730              container export {
4579                description4731                description
4580                  "Export Route Target";4732                  "Export Route Target";
4581                container two-byte-as-rts {4733                container two-byte-as-rts {
4582                  description4734                  description
4583                    "Two Byte AS Number Route Target";4735                    "Two Byte AS Number Route Target";
4584                  list two-byte-as-rt {4736                  list two-byte-as-rt {
4585                    key "two-byte-as-number assigned-number";4737                    key "two-byte-as-number assigned-number";
4586                    description4738                    description
4587                      "Two Byte AS Number Route Target";4739                      "Two Byte AS Number Route Target";
4588                    leaf two-byte-as-number {4740                    leaf two-byte-as-number {
4589                      type uint32 {4741                      type uint32 {
4590                        range "1..65535";4742                        range "1..65535";
4591                      }4743                      }
4592                      description4744                      description
4593                        "Two Byte AS Number";4745                        "Two Byte AS Number";
4594                    }4746                    }
4595                    leaf assigned-number {4747                    leaf assigned-number {
4596                      type uint32 {4748                      type uint32 {
4597                        range "0..4294967295" {4749                        range "0..4294967295" {
4598                          description4750                          description
4599                            "AS:nn (hex or decimal format)";4751                            "AS:nn (hex or decimal format)";
4600                        }4752                        }
4601                      }4753                      }
4602                      description4754                      description
4603                        "AS:nn (hex or decimal format)";4755                        "AS:nn (hex or decimal format)";
4604                    }4756                    }
4605                  }4757                  }
4606                }4758                }
4607                container four-byte-as-rts {4759                container four-byte-as-rts {
4608                  description4760                  description
4609                    "Four Byte AS number Route Target";4761                    "Four Byte AS number Route Target";
4610                  list four-byte-as-rt {4762                  list four-byte-as-rt {
4611                    key "four-byte-as-number assigned-number";4763                    key "four-byte-as-number assigned-number";
4612                    description4764                    description
4613                      "Four Byte AS number Route Target";4765                      "Four Byte AS number Route Target";
4614                    leaf four-byte-as-number {4766                    leaf four-byte-as-number {
4615                      type uint32 {4767                      type uint32 {
4616                        range "65536..4294967295";4768                        range "65536..4294967295";
4617                      }4769                      }
4618                      description4770                      description
4619                        "Four Byte AS number";4771                        "Four Byte AS number";
4620                    }4772                    }
4621                    leaf assigned-number {4773                    leaf assigned-number {
4622                      type uint32 {4774                      type uint32 {
4623                        range "0..65535" {4775                        range "0..65535" {
4624                          description4776                          description
4625                            "AS:nn (hex or decimal format)";4777                            "AS:nn (hex or decimal format)";
4626                        }4778                        }
4627                      }4779                      }
4628                      description4780                      description
4629                        "AS:nn (hex or decimal format)";4781                        "AS:nn (hex or decimal format)";
4630                    }4782                    }
4631                  }4783                  }
4632                }4784                }
4633                container ipv4-address-rts {4785                container ipv4-address-rts {
4634                  description4786                  description
4635                    "IP address Route Target";4787                    "IP address Route Target";
4636                  list ipv4-address-rt {4788                  list ipv4-address-rt {
4637                    key "ipv4-address assigned-number";4789                    key "ipv4-address assigned-number";
4638                    description4790                    description
4639                      "IP address";4791                      "IP address";
4640                    leaf ipv4-address {4792                    leaf ipv4-address {
4641                      type inet:ipv4-address-no-zone;4793                      type inet:ipv4-address-no-zone;
4642                      description4794                      description
4643                        "IP address";4795                        "IP address";
4644                    }4796                    }
4645                    leaf assigned-number {4797                    leaf assigned-number {
4646                      type uint32 {4798                      type uint32 {
4647                        range "0..65535" {4799                        range "0..65535" {
4648                          description4800                          description
4649                            "IP-address:nn (hex or decimal format)";4801                            "IP-address:nn (hex or decimal format)";
4650                        }4802                        }
4651                      }4803                      }
4652                      description4804                      description
4653                        "IP-address:nn (hex or decimal format)";4805                        "IP-address:nn (hex or decimal format)";
4654                    }4806                    }
4655                  }4807                  }
4656                }4808                }
4657                container none {4809                container none {
4658                  presence "Indicates a none node is configured.";4810                  presence "Indicates a none node is configured.";
4659                  description4811                  description
4660                    "Withhold BGP RTs";4812                    "Withhold BGP RTs";
4661                }4813                }
4662              }4814              }
4663            }4815            }
4664            leaf table-policy {4816            leaf table-policy {
4665              type xr:Route-policy-name;4817              type xr:Route-policy-name;
4666              description4818              description
4667                "Configure policy for installation of forwarding data to L2FIB";4819                "Configure policy for installation of forwarding data to L2FIB";
4668            }4820            }
4669            container implicit-import-disable {4821            container implicit-import-disable {
4670              presence "Indicates a implicit-import-disable node is configured.";4822              presence "Indicates a implicit-import-disable node is configured.";
4671              description4823              description
4672                "Disable BGP implicit import";4824                "Disable BGP implicit import";
4673            }4825            }
4674            container route-policy {4826            container route-policy {
4675              description4827              description
4676                "Apply route policy";4828                "Apply route policy";
4677              leaf export {4829              leaf export {
4678                type xr:Route-policy-name;4830                type xr:Route-policy-name;
4679                description4831                description
4680                  "Export route policy";4832                  "Export route policy";
4681              }4833              }
4682              leaf import {4834              leaf import {
4683                type xr:Route-policy-name;4835                type xr:Route-policy-name;
4684                description4836                description
4685                  "Import route policy";4837                  "Import route policy";
4686              }4838              }
4687            }4839            }
4688          }4840          }
4689          leaf description {4841          leaf description {
4690            type string {4842            type string {
4691              length "1..64" {4843              length "1..64" {
4692                description4844                description
4693                  "EVPN Instance description string";4845                  "EVPN Instance description string";
4694              }4846              }
4695            }4847            }
4696            description4848            description
4697              "Description for this EVPN Instance";4849              "Description for this EVPN Instance";
4698          }4850          }
4699          container ecmp-disable-deprecated {4851          container ecmp-disable-deprecated {
4700            presence "Indicates a ecmp-disable-deprecated node is configured.";4852            presence "Indicates a ecmp-disable-deprecated node is configured.";
4701            description4853            description
4702              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";4854              "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
4703          }4855          }
4704          container preferred-nexthop {4856          container preferred-nexthop {
4705            description4857            description
4706              "Elect unique active path from ECMP candidate list";4858              "Elect unique active path from ECMP candidate list";
4707            container lowest-ip {4859            container lowest-ip {
4708              must "not(../highest-ip or ../modulo)";4860              must "not(../highest-ip or ../modulo)";
4709              presence "Indicates a lowest-ip node is configured.";4861              presence "Indicates a lowest-ip node is configured.";
4710              description4862              description
4711                "Lowest nexthop IP is active";4863                "Lowest nexthop IP is active";
4712            }4864            }
4713            container highest-ip {4865            container highest-ip {
4714              must "not(../lowest-ip or ../modulo)";4866              must "not(../lowest-ip or ../modulo)";
4715              presence "Indicates a highest-ip node is configured.";4867              presence "Indicates a highest-ip node is configured.";
4716              description4868              description
4717                "Highest nexthop IP is active";4869                "Highest nexthop IP is active";
4718            }4870            }
4719            container modulo {4871            container modulo {
4720              must "not(../lowest-ip or ../highest-ip)";4872              must "not(../lowest-ip or ../highest-ip)";
4721              presence "Indicates a modulo node is configured.";4873              presence "Indicates a modulo node is configured.";
4722              description4874              description
4723                "EVI modulo of nexthops cardinality is active";4875                "EVI modulo of nexthops cardinality is active";
4724            }4876            }
4725          }4877          }
4726          container advertise-mac {4878          container advertise-mac {
4727            presence "Indicates a advertise-mac node is configured.";4879            presence "Indicates a advertise-mac node is configured.";
4728            description4880            description
4729              "Configure EVPN Instance MAC advertisement";4881              "Configure EVPN Instance MAC advertisement";
4730            container bvi-mac {4882            container bvi-mac {
4731              presence "Indicates a bvi-mac node is configured.";4883              presence "Indicates a bvi-mac node is configured.";
4732              description4884              description
4733                "Advertise local MAC and BVI MAC routes";4885                "Advertise local MAC and BVI MAC routes";
4734            }4886            }
4735          }4887          }
4736          container unknown-unicast-suppression {4888          container unknown-unicast-suppression {
4737            presence "Indicates a unknown-unicast-suppression node is configured.";4889            presence "Indicates a unknown-unicast-suppression node is configured.";
4738            description4890            description
4739              "Enabling unknown unicast suppression";4891              "Enabling unknown unicast suppression";
4740          }4892          }
4741          container ignore-mtu-mismatch {4893          container ignore-mtu-mismatch {
4742            presence "Indicates a ignore-mtu-mismatch node is configured.";4894            presence "Indicates a ignore-mtu-mismatch node is configured.";
4743            description4895            description
4744              "Ignore mismatch of local and remote MTUs";4896              "Ignore mismatch of local and remote MTUs";
4745            container disable-deprecated {4897            container disable-deprecated {
4746              presence "Indicates a disable-deprecated node is configured.";4898              presence "Indicates a disable-deprecated node is configured.";
4747              description4899              description
4748                "Disables ingoring mismatch of local and remote MTUs (deprecated)";4900                "Disables ingoring mismatch of local and remote MTUs (deprecated)";
4749            }4901            }
4750          }4902          }
4751          container enforce-mtu-match {4903          container enforce-mtu-match {
4752            presence "Indicates a enforce-mtu-match node is configured.";4904            presence "Indicates a enforce-mtu-match node is configured.";
4753            description4905            description
4754              "Enforce matching of local and remote MTUs";4906              "Enforce matching of local and remote MTUs";
4755          }4907          }
4756          container transmit-mtu-zero {4908          container transmit-mtu-zero {
4757            presence "Indicates a transmit-mtu-zero node is configured.";4909            presence "Indicates a transmit-mtu-zero node is configured.";
4758            description4910            description
4759              "Transmit MTU zero to remote instead of actual local MTU";4911              "Transmit MTU zero to remote instead of actual local MTU";
4760            container disable-deprecated {4912            container disable-deprecated {
4761              presence "Indicates a disable-deprecated node is configured.";4913              presence "Indicates a disable-deprecated node is configured.";
4762              description4914              description
4763                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";4915                "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
4764            }4916            }
4765          }4917          }
4766          container transmit-l2-mtu {4918          container transmit-l2-mtu {
4767            presence "Indicates a transmit-l2-mtu node is configured.";4919            presence "Indicates a transmit-l2-mtu node is configured.";
4768            description4920            description
4769              "Transmit L2 MTU of attachment circuit";4921              "Transmit L2 MTU of attachment circuit";
4770          }4922          }
4771          container re-origination-disable {4923          container re-origination-disable {
4772            presence "Indicates a re-origination-disable node is configured.";4924            presence "Indicates a re-origination-disable node is configured.";
4773            description4925            description
4774              "Disable route re-origination";4926              "Disable route re-origination";
4775          }4927          }
n4776          container locators {n4928          container multicast {
4777            description4929            presence "Indicates a multicast node is configured.";
4778              "EVI locator to use for EVPN SID allocation";
4779            list locator {
4780              key "locator-name";
4781              description4930            description
4782                "EVI locator to use for EVPN SID allocation";4931              "Configure EVPN Instance Multicast";
4783              leaf locator-name {4932            container source-connected {
4784                type xr:Cisco-ios-xr-string {4933              presence "Indicates a source-connected node is configured.";
4785                  length "1..58" {
4786                    description
4787                      "Specify locator name";
4788                  }
4789                  pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
4790                }
4791                description4934              description
4792                  "EVI locator to use for EVPN SID allocation";4935                "Multicast traffic source connected";
4793              }4936            }
4937          }
4938          container proxy {
4939            presence "Indicates a proxy node is configured.";
4940            description
4941              "Configure EVPN Instance Proxy";
4794              container usid {4942            container igmp-snooping {
4943              presence "Indicates a igmp-snooping node is configured.";
4795                description4944              description
4796                  "Configure the uSID wide function knob";4945                "Proxy mode for IGMP-Snooping (selective multicast)";
4797                container allocation {
4798                  description
4799                    "Set the allocation types associated with uSID";
4800                  container wide-local-id-block {
4801                    presence "Indicates a wide-local-id-block node is configured.";
4802                    description
4803                      "Enable uSID wide function knob for the locator";
4804                  }
4805                }
4806              }
4807            }4946            }
4808          }4947          }
4809          container bvi-coupled-mode {4948          container bvi-coupled-mode {
4810            presence "Indicates a bvi-coupled-mode node is configured.";4949            presence "Indicates a bvi-coupled-mode node is configured.";
4811            description4950            description
4812              "Couples BVI state to the core EVPN Instance state";4951              "Couples BVI state to the core EVPN Instance state";
4813          }4952          }
4814        }4953        }
4815      }4954      }
4816      list vni {4955      list vni {
4817        key "vni-id";4956        key "vni-id";
4818        description4957        description
4819          "Configure EVPN VNI";4958          "Configure EVPN VNI";
4820        leaf vni-id {4959        leaf vni-id {
4821          type uint32 {4960          type uint32 {
4822            range "1..16777215" {4961            range "1..16777215" {
4823              description4962              description
4824                "EVPN VNI value";4963                "EVPN VNI value";
4825            }4964            }
4826          }4965          }
4827          description4966          description
4828            "Configure EVPN VNI";4967            "Configure EVPN VNI";
4829        }4968        }
4830        container bgp {4969        container bgp {
4831          presence "Indicates a bgp node is configured.";4970          presence "Indicates a bgp node is configured.";
4832          description4971          description
4833            "Configure BGP";4972            "Configure BGP";
4834          container rd {4973          container rd {
4835            description4974            description
4836              "Set the Route Distinguisher";4975              "Set the Route Distinguisher";
4837            leaf two-byte-as-number {4976            leaf two-byte-as-number {
4838              type uint32 {4977              type uint32 {
4839                range "1..65535" {4978                range "1..65535" {
4840                  description4979                  description
4841                    "Two Byte AS Number";4980                    "Two Byte AS Number";
4842                }4981                }
4843              }4982              }
n4844              must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n4983              must "not(../four-byte-as-number or ../ipv4-address)";
4845              description4984              description
4846                "Two Byte AS Number";4985                "Two Byte AS Number";
4847            }4986            }
4848            leaf two-byte-as-assigned-number {4987            leaf two-byte-as-assigned-number {
4849              type uint32 {4988              type uint32 {
4850                range "0..4294967295" {4989                range "0..4294967295" {
4851                  description4990                  description
4852                    "AS:nn (hex or decimal format)";4991                    "AS:nn (hex or decimal format)";
4853                }4992                }
4854              }4993              }
4855              must "../two-byte-as-number";4994              must "../two-byte-as-number";
4856              description4995              description
4857                "AS:nn (hex or decimal format)";4996                "AS:nn (hex or decimal format)";
4858            }4997            }
4859            leaf four-byte-as-number {4998            leaf four-byte-as-number {
4860              type uint32 {4999              type uint32 {
4861                range "65536..4294967295" {5000                range "65536..4294967295" {
4862                  description5001                  description
4863                    "Four Byte AS number";5002                    "Four Byte AS number";
4864                }5003                }
4865              }5004              }
n4866              must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n5005              must "not(../two-byte-as-number or ../ipv4-address)";
4867              description5006              description
4868                "Four Byte AS number";5007                "Four Byte AS number";
4869            }5008            }
4870            leaf four-byte-as-assigned-number {5009            leaf four-byte-as-assigned-number {
4871              type uint32 {5010              type uint32 {
4872                range "0..65535" {5011                range "0..65535" {
4873                  description5012                  description
4874                    "AS:nn (hex or decimal format)";5013                    "AS:nn (hex or decimal format)";
4875                }5014                }
4876              }5015              }
4877              must "../four-byte-as-number";5016              must "../four-byte-as-number";
4878              description5017              description
4879                "AS:nn (hex or decimal format)";5018                "AS:nn (hex or decimal format)";
4880            }5019            }
4881            leaf ipv4-address {5020            leaf ipv4-address {
4882              type inet:ipv4-address-no-zone;5021              type inet:ipv4-address-no-zone;
n4883              must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n5022              must "not(../two-byte-as-number or ../four-byte-as-number)";
4884              description5023              description
4885                "IP address";5024                "IP address";
4886            }5025            }
4887            leaf ipv4-address-assigned-number {5026            leaf ipv4-address-assigned-number {
4888              type uint32 {5027              type uint32 {
4889                range "0..65535" {5028                range "0..65535" {
4890                  description5029                  description
4891                    "IP-address:nn (hex or decimal format)";5030                    "IP-address:nn (hex or decimal format)";
4892                }5031                }
4893              }5032              }
4894              must "../ipv4-address";5033              must "../ipv4-address";
4895              description5034              description
4896                "IP-address:nn (hex or decimal format)";5035                "IP-address:nn (hex or decimal format)";
4897            }5036            }
4898          }5037          }
4899          container route-target {5038          container route-target {
4900            description5039            description
4901              "Set the Route Target";5040              "Set the Route Target";
4902            container two-byte-as-rts {5041            container two-byte-as-rts {
4903              description5042              description
4904                "Two Byte AS Number Route Target";5043                "Two Byte AS Number Route Target";
4905              list two-byte-as-rt {5044              list two-byte-as-rt {
4906                key "two-byte-as-number assigned-number";5045                key "two-byte-as-number assigned-number";
4907                description5046                description
4908                  "Two Byte AS Number Route Target";5047                  "Two Byte AS Number Route Target";
4909                leaf two-byte-as-number {5048                leaf two-byte-as-number {
4910                  type uint32 {5049                  type uint32 {
4911                    range "1..65535";5050                    range "1..65535";
4912                  }5051                  }
4913                  description5052                  description
4914                    "Two Byte AS Number";5053                    "Two Byte AS Number";
4915                }5054                }
4916                leaf assigned-number {5055                leaf assigned-number {
4917                  type uint32 {5056                  type uint32 {
4918                    range "0..4294967295" {5057                    range "0..4294967295" {
4919                      description5058                      description
4920                        "AS:nn (hex or decimal format)";5059                        "AS:nn (hex or decimal format)";
4921                    }5060                    }
4922                  }5061                  }
4923                  description5062                  description
4924                    "AS:nn (hex or decimal format)";5063                    "AS:nn (hex or decimal format)";
4925                }5064                }
4926              }5065              }
4927            }5066            }
4928            container four-byte-as-rts {5067            container four-byte-as-rts {
4929              description5068              description
4930                "Four Byte AS number Route Target";5069                "Four Byte AS number Route Target";
4931              list four-byte-as-rt {5070              list four-byte-as-rt {
4932                key "four-byte-as-number assigned-number";5071                key "four-byte-as-number assigned-number";
4933                description5072                description
4934                  "Four Byte AS number Route Target";5073                  "Four Byte AS number Route Target";
4935                leaf four-byte-as-number {5074                leaf four-byte-as-number {
4936                  type uint32 {5075                  type uint32 {
4937                    range "65536..4294967295";5076                    range "65536..4294967295";
4938                  }5077                  }
4939                  description5078                  description
4940                    "Four Byte AS number";5079                    "Four Byte AS number";
4941                }5080                }
4942                leaf assigned-number {5081                leaf assigned-number {
4943                  type uint32 {5082                  type uint32 {
4944                    range "0..65535" {5083                    range "0..65535" {
4945                      description5084                      description
4946                        "AS:nn (hex or decimal format)";5085                        "AS:nn (hex or decimal format)";
4947                    }5086                    }
4948                  }5087                  }
4949                  description5088                  description
4950                    "AS:nn (hex or decimal format)";5089                    "AS:nn (hex or decimal format)";
4951                }5090                }
4952              }5091              }
4953            }5092            }
4954            container ipv4-address-rts {5093            container ipv4-address-rts {
4955              description5094              description
4956                "IP address Route Target";5095                "IP address Route Target";
4957              list ipv4-address-rt {5096              list ipv4-address-rt {
4958                key "ipv4-address assigned-number";5097                key "ipv4-address assigned-number";
4959                description5098                description
4960                  "IP address";5099                  "IP address";
4961                leaf ipv4-address {5100                leaf ipv4-address {
4962                  type inet:ipv4-address-no-zone;5101                  type inet:ipv4-address-no-zone;
4963                  description5102                  description
4964                    "IP address";5103                    "IP address";
4965                }5104                }
4966                leaf assigned-number {5105                leaf assigned-number {
4967                  type uint32 {5106                  type uint32 {
4968                    range "0..65535" {5107                    range "0..65535" {
4969                      description5108                      description
4970                        "IP-address:nn (hex or decimal format)";5109                        "IP-address:nn (hex or decimal format)";
4971                    }5110                    }
4972                  }5111                  }
4973                  description5112                  description
4974                    "IP-address:nn (hex or decimal format)";5113                    "IP-address:nn (hex or decimal format)";
4975                }5114                }
4976              }5115              }
4977            }5116            }
4978            container none {5117            container none {
4979              presence "Indicates a none node is configured.";5118              presence "Indicates a none node is configured.";
4980              description5119              description
4981                "Withhold BGP RTs";5120                "Withhold BGP RTs";
4982            }5121            }
4983            container import {5122            container import {
4984              description5123              description
4985                "Import Route Target";5124                "Import Route Target";
4986              container two-byte-as-rts {5125              container two-byte-as-rts {
4987                description5126                description
4988                  "Two Byte AS Number Route Target";5127                  "Two Byte AS Number Route Target";
4989                list two-byte-as-rt {5128                list two-byte-as-rt {
4990                  key "two-byte-as-number assigned-number";5129                  key "two-byte-as-number assigned-number";
4991                  description5130                  description
4992                    "Two Byte AS Number Route Target";5131                    "Two Byte AS Number Route Target";
4993                  leaf two-byte-as-number {5132                  leaf two-byte-as-number {
4994                    type uint32 {5133                    type uint32 {
4995                      range "1..65535";5134                      range "1..65535";
4996                    }5135                    }
4997                    description5136                    description
4998                      "Two Byte AS Number";5137                      "Two Byte AS Number";
4999                  }5138                  }
5000                  leaf assigned-number {5139                  leaf assigned-number {
5001                    type uint32 {5140                    type uint32 {
5002                      range "0..4294967295" {5141                      range "0..4294967295" {
5003                        description5142                        description
5004                          "AS:nn (hex or decimal format)";5143                          "AS:nn (hex or decimal format)";
5005                      }5144                      }
5006                    }5145                    }
5007                    description5146                    description
5008                      "AS:nn (hex or decimal format)";5147                      "AS:nn (hex or decimal format)";
5009                  }5148                  }
5010                }5149                }
5011              }5150              }
5012              container four-byte-as-rts {5151              container four-byte-as-rts {
5013                description5152                description
5014                  "Four Byte AS number Route Target";5153                  "Four Byte AS number Route Target";
5015                list four-byte-as-rt {5154                list four-byte-as-rt {
5016                  key "four-byte-as-number assigned-number";5155                  key "four-byte-as-number assigned-number";
5017                  description5156                  description
5018                    "Four Byte AS number Route Target";5157                    "Four Byte AS number Route Target";
5019                  leaf four-byte-as-number {5158                  leaf four-byte-as-number {
5020                    type uint32 {5159                    type uint32 {
5021                      range "65536..4294967295";5160                      range "65536..4294967295";
5022                    }5161                    }
5023                    description5162                    description
5024                      "Four Byte AS number";5163                      "Four Byte AS number";
5025                  }5164                  }
5026                  leaf assigned-number {5165                  leaf assigned-number {
5027                    type uint32 {5166                    type uint32 {
5028                      range "0..65535" {5167                      range "0..65535" {
5029                        description5168                        description
5030                          "AS:nn (hex or decimal format)";5169                          "AS:nn (hex or decimal format)";
5031                      }5170                      }
5032                    }5171                    }
5033                    description5172                    description
5034                      "AS:nn (hex or decimal format)";5173                      "AS:nn (hex or decimal format)";
5035                  }5174                  }
5036                }5175                }
5037              }5176              }
5038              container ipv4-address-rts {5177              container ipv4-address-rts {
5039                description5178                description
5040                  "IP address Route Target";5179                  "IP address Route Target";
5041                list ipv4-address-rt {5180                list ipv4-address-rt {
5042                  key "ipv4-address assigned-number";5181                  key "ipv4-address assigned-number";
5043                  description5182                  description
5044                    "IP address";5183                    "IP address";
5045                  leaf ipv4-address {5184                  leaf ipv4-address {
5046                    type inet:ipv4-address-no-zone;5185                    type inet:ipv4-address-no-zone;
5047                    description5186                    description
5048                      "IP address";5187                      "IP address";
5049                  }5188                  }
5050                  leaf assigned-number {5189                  leaf assigned-number {
5051                    type uint32 {5190                    type uint32 {
5052                      range "0..65535" {5191                      range "0..65535" {
5053                        description5192                        description
5054                          "IP-address:nn (hex or decimal format)";5193                          "IP-address:nn (hex or decimal format)";
5055                      }5194                      }
5056                    }5195                    }
5057                    description5196                    description
5058                      "IP-address:nn (hex or decimal format)";5197                      "IP-address:nn (hex or decimal format)";
5059                  }5198                  }
5060                }5199                }
5061              }5200              }
5062              container none {5201              container none {
5063                presence "Indicates a none node is configured.";5202                presence "Indicates a none node is configured.";
5064                description5203                description
5065                  "Withhold BGP RTs";5204                  "Withhold BGP RTs";
5066              }5205              }
5067            }5206            }
5068            container export {5207            container export {
5069              description5208              description
5070                "Export Route Target";5209                "Export Route Target";
5071              container two-byte-as-rts {5210              container two-byte-as-rts {
5072                description5211                description
5073                  "Two Byte AS Number Route Target";5212                  "Two Byte AS Number Route Target";
5074                list two-byte-as-rt {5213                list two-byte-as-rt {
5075                  key "two-byte-as-number assigned-number";5214                  key "two-byte-as-number assigned-number";
5076                  description5215                  description
5077                    "Two Byte AS Number Route Target";5216                    "Two Byte AS Number Route Target";
5078                  leaf two-byte-as-number {5217                  leaf two-byte-as-number {
5079                    type uint32 {5218                    type uint32 {
5080                      range "1..65535";5219                      range "1..65535";
5081                    }5220                    }
5082                    description5221                    description
5083                      "Two Byte AS Number";5222                      "Two Byte AS Number";
5084                  }5223                  }
5085                  leaf assigned-number {5224                  leaf assigned-number {
5086                    type uint32 {5225                    type uint32 {
5087                      range "0..4294967295" {5226                      range "0..4294967295" {
5088                        description5227                        description
5089                          "AS:nn (hex or decimal format)";5228                          "AS:nn (hex or decimal format)";
5090                      }5229                      }
5091                    }5230                    }
5092                    description5231                    description
5093                      "AS:nn (hex or decimal format)";5232                      "AS:nn (hex or decimal format)";
5094                  }5233                  }
5095                }5234                }
5096              }5235              }
5097              container four-byte-as-rts {5236              container four-byte-as-rts {
5098                description5237                description
5099                  "Four Byte AS number Route Target";5238                  "Four Byte AS number Route Target";
5100                list four-byte-as-rt {5239                list four-byte-as-rt {
5101                  key "four-byte-as-number assigned-number";5240                  key "four-byte-as-number assigned-number";
5102                  description5241                  description
5103                    "Four Byte AS number Route Target";5242                    "Four Byte AS number Route Target";
5104                  leaf four-byte-as-number {5243                  leaf four-byte-as-number {
5105                    type uint32 {5244                    type uint32 {
5106                      range "65536..4294967295";5245                      range "65536..4294967295";
5107                    }5246                    }
5108                    description5247                    description
5109                      "Four Byte AS number";5248                      "Four Byte AS number";
5110                  }5249                  }
5111                  leaf assigned-number {5250                  leaf assigned-number {
5112                    type uint32 {5251                    type uint32 {
5113                      range "0..65535" {5252                      range "0..65535" {
5114                        description5253                        description
5115                          "AS:nn (hex or decimal format)";5254                          "AS:nn (hex or decimal format)";
5116                      }5255                      }
5117                    }5256                    }
5118                    description5257                    description
5119                      "AS:nn (hex or decimal format)";5258                      "AS:nn (hex or decimal format)";
5120                  }5259                  }
5121                }5260                }
5122              }5261              }
5123              container ipv4-address-rts {5262              container ipv4-address-rts {
5124                description5263                description
5125                  "IP address Route Target";5264                  "IP address Route Target";
5126                list ipv4-address-rt {5265                list ipv4-address-rt {
5127                  key "ipv4-address assigned-number";5266                  key "ipv4-address assigned-number";
5128                  description5267                  description
5129                    "IP address";5268                    "IP address";
5130                  leaf ipv4-address {5269                  leaf ipv4-address {
5131                    type inet:ipv4-address-no-zone;5270                    type inet:ipv4-address-no-zone;
5132                    description5271                    description
5133                      "IP address";5272                      "IP address";
5134                  }5273                  }
5135                  leaf assigned-number {5274                  leaf assigned-number {
5136                    type uint32 {5275                    type uint32 {
5137                      range "0..65535" {5276                      range "0..65535" {
5138                        description5277                        description
5139                          "IP-address:nn (hex or decimal format)";5278                          "IP-address:nn (hex or decimal format)";
5140                      }5279                      }
5141                    }5280                    }
5142                    description5281                    description
5143                      "IP-address:nn (hex or decimal format)";5282                      "IP-address:nn (hex or decimal format)";
5144                  }5283                  }
5145                }5284                }
5146              }5285              }
5147              container none {5286              container none {
5148                presence "Indicates a none node is configured.";5287                presence "Indicates a none node is configured.";
5149                description5288                description
5150                  "Withhold BGP RTs";5289                  "Withhold BGP RTs";
5151              }5290              }
5152            }5291            }
5153          }5292          }
5154          leaf table-policy {5293          leaf table-policy {
5155            type xr:Route-policy-name;5294            type xr:Route-policy-name;
5156            description5295            description
5157              "Configure policy for installation of forwarding data to L2FIB";5296              "Configure policy for installation of forwarding data to L2FIB";
5158          }5297          }
5159          container implicit-import-disable {5298          container implicit-import-disable {
5160            presence "Indicates a implicit-import-disable node is configured.";5299            presence "Indicates a implicit-import-disable node is configured.";
5161            description5300            description
5162              "Disable BGP implicit import";5301              "Disable BGP implicit import";
5163          }5302          }
5164          container route-policy {5303          container route-policy {
5165            description5304            description
5166              "Apply route policy";5305              "Apply route policy";
5167            leaf export {5306            leaf export {
5168              type xr:Route-policy-name;5307              type xr:Route-policy-name;
5169              description5308              description
5170                "Export route policy";5309                "Export route policy";
5171            }5310            }
5172            leaf import {5311            leaf import {
5173              type xr:Route-policy-name;5312              type xr:Route-policy-name;
5174              description5313              description
5175                "Import route policy";5314                "Import route policy";
5176            }5315            }
5177          }5316          }
5178        }5317        }
5179        leaf description {5318        leaf description {
5180          type string {5319          type string {
5181            length "1..64" {5320            length "1..64" {
5182              description5321              description
5183                "EVPN Instance description string";5322                "EVPN Instance description string";
5184            }5323            }
5185          }5324          }
5186          description5325          description
5187            "Description for this EVPN Instance";5326            "Description for this EVPN Instance";
5188        }5327        }
5189        container ecmp-disable-deprecated {5328        container ecmp-disable-deprecated {
5190          presence "Indicates a ecmp-disable-deprecated node is configured.";5329          presence "Indicates a ecmp-disable-deprecated node is configured.";
5191          description5330          description
5192            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";5331            "Deprecated: migrate to <evpn evi N preferrred-nexthop modulo>";
5193        }5332        }
5194        container preferred-nexthop {5333        container preferred-nexthop {
5195          description5334          description
5196            "Elect unique active path from ECMP candidate list";5335            "Elect unique active path from ECMP candidate list";
5197          container lowest-ip {5336          container lowest-ip {
5198            must "not(../highest-ip or ../modulo)";5337            must "not(../highest-ip or ../modulo)";
5199            presence "Indicates a lowest-ip node is configured.";5338            presence "Indicates a lowest-ip node is configured.";
5200            description5339            description
5201              "Lowest nexthop IP is active";5340              "Lowest nexthop IP is active";
5202          }5341          }
5203          container highest-ip {5342          container highest-ip {
5204            must "not(../lowest-ip or ../modulo)";5343            must "not(../lowest-ip or ../modulo)";
5205            presence "Indicates a highest-ip node is configured.";5344            presence "Indicates a highest-ip node is configured.";
5206            description5345            description
5207              "Highest nexthop IP is active";5346              "Highest nexthop IP is active";
5208          }5347          }
5209          container modulo {5348          container modulo {
5210            must "not(../lowest-ip or ../highest-ip)";5349            must "not(../lowest-ip or ../highest-ip)";
5211            presence "Indicates a modulo node is configured.";5350            presence "Indicates a modulo node is configured.";
5212            description5351            description
5213              "EVI modulo of nexthops cardinality is active";5352              "EVI modulo of nexthops cardinality is active";
5214          }5353          }
5215        }5354        }
5216        container advertise-mac {5355        container advertise-mac {
5217          presence "Indicates a advertise-mac node is configured.";5356          presence "Indicates a advertise-mac node is configured.";
5218          description5357          description
5219            "Configure EVPN Instance MAC advertisement";5358            "Configure EVPN Instance MAC advertisement";
5220          container bvi-mac {5359          container bvi-mac {
5221            presence "Indicates a bvi-mac node is configured.";5360            presence "Indicates a bvi-mac node is configured.";
5222            description5361            description
5223              "Advertise local MAC and BVI MAC routes";5362              "Advertise local MAC and BVI MAC routes";
5224          }5363          }
5225        }5364        }
5226        container unknown-unicast-suppression {5365        container unknown-unicast-suppression {
5227          presence "Indicates a unknown-unicast-suppression node is configured.";5366          presence "Indicates a unknown-unicast-suppression node is configured.";
5228          description5367          description
5229            "Enabling unknown unicast suppression";5368            "Enabling unknown unicast suppression";
5230        }5369        }
5231        container ignore-mtu-mismatch {5370        container ignore-mtu-mismatch {
5232          presence "Indicates a ignore-mtu-mismatch node is configured.";5371          presence "Indicates a ignore-mtu-mismatch node is configured.";
5233          description5372          description
5234            "Ignore mismatch of local and remote MTUs";5373            "Ignore mismatch of local and remote MTUs";
5235          container disable-deprecated {5374          container disable-deprecated {
5236            presence "Indicates a disable-deprecated node is configured.";5375            presence "Indicates a disable-deprecated node is configured.";
5237            description5376            description
5238              "Disables ingoring mismatch of local and remote MTUs (deprecated)";5377              "Disables ingoring mismatch of local and remote MTUs (deprecated)";
5239          }5378          }
5240        }5379        }
5241        container enforce-mtu-match {5380        container enforce-mtu-match {
5242          presence "Indicates a enforce-mtu-match node is configured.";5381          presence "Indicates a enforce-mtu-match node is configured.";
5243          description5382          description
5244            "Enforce matching of local and remote MTUs";5383            "Enforce matching of local and remote MTUs";
5245        }5384        }
5246        container transmit-mtu-zero {5385        container transmit-mtu-zero {
5247          presence "Indicates a transmit-mtu-zero node is configured.";5386          presence "Indicates a transmit-mtu-zero node is configured.";
5248          description5387          description
5249            "Transmit MTU zero to remote instead of actual local MTU";5388            "Transmit MTU zero to remote instead of actual local MTU";
5250          container disable-deprecated {5389          container disable-deprecated {
5251            presence "Indicates a disable-deprecated node is configured.";5390            presence "Indicates a disable-deprecated node is configured.";
5252            description5391            description
5253              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";5392              "Disables transmitting MTU zero to remote instead of actual local MTU (deprecated)";
5254          }5393          }
5255        }5394        }
5256        container transmit-l2-mtu {5395        container transmit-l2-mtu {
5257          presence "Indicates a transmit-l2-mtu node is configured.";5396          presence "Indicates a transmit-l2-mtu node is configured.";
5258          description5397          description
5259            "Transmit L2 MTU of attachment circuit";5398            "Transmit L2 MTU of attachment circuit";
5260        }5399        }
5261        container re-origination-disable {5400        container re-origination-disable {
5262          presence "Indicates a re-origination-disable node is configured.";5401          presence "Indicates a re-origination-disable node is configured.";
5263          description5402          description
5264            "Disable route re-origination";5403            "Disable route re-origination";
5265        }5404        }
n5266        container locators {n5405        container multicast {
5406          presence "Indicates a multicast node is configured.";
5267          description5407          description
n5268            "EVI locator to use for EVPN SID allocation";n5408            "Configure EVPN Instance Multicast";
5269          list locator {5409          container source-connected {
5270            key "locator-name";5410            presence "Indicates a source-connected node is configured.";
5271            description
5272              "EVI locator to use for EVPN SID allocation";
5273            leaf locator-name {
5274              type xr:Cisco-ios-xr-string {
5275                length "1..58" {
5276                  description
5277                    "Specify locator name";
5278                }
5279                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
5280              }
5281              description5411            description
5282                "EVI locator to use for EVPN SID allocation";5412              "Multicast traffic source connected";
5283            }5413          }
5414        }
5415        container proxy {
5416          presence "Indicates a proxy node is configured.";
5417          description
5418            "Configure EVPN Instance Proxy";
5284            container usid {5419          container igmp-snooping {
5420            presence "Indicates a igmp-snooping node is configured.";
5285              description5421            description
5286                "Configure the uSID wide function knob";5422              "Proxy mode for IGMP-Snooping (selective multicast)";
5287              container allocation {
5288                description
5289                  "Set the allocation types associated with uSID";
5290                container wide-local-id-block {
5291                  presence "Indicates a wide-local-id-block node is configured.";
5292                  description
5293                    "Enable uSID wide function knob for the locator";
5294                }
5295              }
5296            }
5297          }5423          }
5298        }5424        }
5299        container bvi-coupled-mode {5425        container bvi-coupled-mode {
5300          presence "Indicates a bvi-coupled-mode node is configured.";5426          presence "Indicates a bvi-coupled-mode node is configured.";
5301          description5427          description
5302            "Couples BVI state to the core EVPN Instance state";5428            "Couples BVI state to the core EVPN Instance state";
5303        }5429        }
5304      }5430      }
5305    }5431    }
5306    container segment-routing {5432    container segment-routing {
5307      if-feature "l2vpn_platform_srv6_supported";5433      if-feature "l2vpn_platform_srv6_supported";
5308      description5434      description
5309        "Segment routing configuration for EVPN";5435        "Segment routing configuration for EVPN";
5310      container srv6 {5436      container srv6 {
5311        presence "Indicates a srv6 node is configured.";5437        presence "Indicates a srv6 node is configured.";
5312        description5438        description
5313          "SRv6 configuration for EVPN";5439          "SRv6 configuration for EVPN";
n5314        container locators {n5440        leaf locator {
5441          type xr:Cisco-ios-xr-string {
5442            length "1..58" {
5443              description
5444                "Specify locator name";
5445            }
5446            pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
5447          }
5315          description5448          description
5316            "Default locator to use for EVPN SID allocation";5449            "Default locator to use for EVPN SID allocation";
n5317          list locator {n
5318            key "locator-name";
5319            description
5320              "Default locator to use for EVPN SID allocation";
5321            leaf locator-name {
5322              type xr:Cisco-ios-xr-string {
5323                length "1..58" {
5324                  description
5325                    "Specify locator name";
5326                }
5327                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
5328              }
5329              description
5330                "Default locator to use for EVPN SID allocation";
5331            }
5332            container usid {
5333              description
5334                "Configure the uSID wide function knob";
5335              container allocation {
5336                description
5337                  "Set the allocation types associated with uSID";
5338                container wide-local-id-block {
5339                  presence "Indicates a wide-local-id-block node is configured.";
5340                  description
5341                    "Enable uSID wide function knob for the locator";
5342                }
5343              }
5344            }
5345          }
5346        }
5347        container usid {
5348          description
5349            "Configure the uSID wide function knob";
5350          container allocation {
5351            description
5352              "Set the allocation types associated with uSID";
5353            container wide-local-id-block {
5354              presence "Indicates a wide-local-id-block node is configured.";
5355              description
5356                "Enable uSID wide function global knob";
5357            }
5358          }
5359        }5450        }
5360      }5451      }
5361    }5452    }
5362    container ignore-mtu-mismatch {5453    container ignore-mtu-mismatch {
5363      presence "Indicates a ignore-mtu-mismatch node is configured.";5454      presence "Indicates a ignore-mtu-mismatch node is configured.";
5364      description5455      description
5365        "Ignore mismatch of local and remote MTUs";5456        "Ignore mismatch of local and remote MTUs";
5366    }5457    }
5367    container enforce-mtu-match {5458    container enforce-mtu-match {
5368      presence "Indicates a enforce-mtu-match node is configured.";5459      presence "Indicates a enforce-mtu-match node is configured.";
5369      description5460      description
5370        "Enforce matching of local and remote MTUs";5461        "Enforce matching of local and remote MTUs";
5371    }5462    }
5372    container transmit-mtu-zero {5463    container transmit-mtu-zero {
5373      presence "Indicates a transmit-mtu-zero node is configured.";5464      presence "Indicates a transmit-mtu-zero node is configured.";
5374      description5465      description
5375        "Transmit MTU zero to remote instead of actual local MTU";5466        "Transmit MTU zero to remote instead of actual local MTU";
5376    }5467    }
5377    container transmit-l2-mtu {5468    container transmit-l2-mtu {
5378      presence "Indicates a transmit-l2-mtu node is configured.";5469      presence "Indicates a transmit-l2-mtu node is configured.";
5379      description5470      description
5380        "Transmit L2 MTU of attachment circuit";5471        "Transmit L2 MTU of attachment circuit";
5381    }5472    }
5382  }5473  }
5383  container generic-interface-lists {5474  container generic-interface-lists {
5384    description5475    description
5385      "Interface list";5476      "Interface list";
5386    list generic-interface-list {5477    list generic-interface-list {
5387      key "generic-interface-list-name";5478      key "generic-interface-list-name";
5388      description5479      description
5389        "Interface list";5480        "Interface list";
5390      leaf generic-interface-list-name {5481      leaf generic-interface-list-name {
5391        type xr:Cisco-ios-xr-string {5482        type xr:Cisco-ios-xr-string {
5392          length "1..32" {5483          length "1..32" {
5393            description5484            description
5394              "Interface-list name";5485              "Interface-list name";
5395          }5486          }
5396        }5487        }
5397        description5488        description
5398          "Interface list";5489          "Interface list";
5399      }5490      }
5400      container interfaces {5491      container interfaces {
5401        description5492        description
5402          "Specify an interface";5493          "Specify an interface";
5403        list interface {5494        list interface {
5404          if-feature "l2vpn_iflist_intf_supported";5495          if-feature "l2vpn_iflist_intf_supported";
5405          key "interface-name";5496          key "interface-name";
5406          description5497          description
5407            "Specify interface name";5498            "Specify interface name";
5408          leaf interface-name {5499          leaf interface-name {
5409            type xr:Interface-name;5500            type xr:Interface-name;
5410            description5501            description
5411              "Specify interface name";5502              "Specify interface name";
5412          }5503          }
5413        }5504        }
5414      }5505      }
5415    }5506    }
5416  }5507  }
5417  container l2vpn {5508  container l2vpn {
5418    presence "Indicates a l2vpn node is configured.";5509    presence "Indicates a l2vpn node is configured.";
5419    description5510    description
5420      "Configure l2vpn commands";5511      "Configure l2vpn commands";
5421    container bridge {5512    container bridge {
5422      description5513      description
5423        "Configure bridge commands";5514        "Configure bridge commands";
5424      container groups {5515      container groups {
5425        description5516        description
5426          "Specify the group the bridge belongs to";5517          "Specify the group the bridge belongs to";
5427        list group {5518        list group {
5428          key "group-name";5519          key "group-name";
5429          description5520          description
5430            "Specify the group the bridge belongs to";5521            "Specify the group the bridge belongs to";
5431          leaf group-name {5522          leaf group-name {
5432            type xr:Cisco-ios-xr-string {5523            type xr:Cisco-ios-xr-string {
5433              length "1..32" {5524              length "1..32" {
5434                description5525                description
5435                  "Name of the bridge group";5526                  "Name of the bridge group";
5436              }5527              }
5437            }5528            }
5438            description5529            description
5439              "Specify the group the bridge belongs to";5530              "Specify the group the bridge belongs to";
5440          }5531          }
5441          container bridge-domains {5532          container bridge-domains {
5442            description5533            description
5443              "Configure bridge domain";5534              "Configure bridge domain";
5444            list bridge-domain {5535            list bridge-domain {
5445              key "bridge-domain-name";5536              key "bridge-domain-name";
5446              description5537              description
5447                "Configure bridge domain";5538                "Configure bridge domain";
5448              leaf bridge-domain-name {5539              leaf bridge-domain-name {
5449                type xr:Cisco-ios-xr-string {5540                type xr:Cisco-ios-xr-string {
5450                  length "1..27" {5541                  length "1..27" {
5451                    description5542                    description
5452                      "Name of the bridge domain";5543                      "Name of the bridge domain";
5453                  }5544                  }
5454                }5545                }
5455                description5546                description
5456                  "Configure bridge domain";5547                  "Configure bridge domain";
5457              }5548              }
5458              container evis {5549              container evis {
5459                description5550                description
5460                  "Ethernet VPN identifier";5551                  "Ethernet VPN identifier";
5461                list evi {5552                list evi {
5462                  key "vpn-id";5553                  key "vpn-id";
5463                  description5554                  description
5464                    "Ethernet VPN identifier";5555                    "Ethernet VPN identifier";
5465                  leaf vpn-id {5556                  leaf vpn-id {
5466                    type uint32 {5557                    type uint32 {
5467                      range "1..65534" {5558                      range "1..65534" {
5468                        description5559                        description
5469                          "Ethernet VPN ID to set";5560                          "Ethernet VPN ID to set";
5470                      }5561                      }
5471                    }5562                    }
5472                    description5563                    description
5473                      "Ethernet VPN identifier";5564                      "Ethernet VPN identifier";
5474                  }5565                  }
5475                }5566                }
5476              }5567              }
n5477              container segment-routing-srv6-evis {n
5478                description
5479                  "Ethernet VPN identifier for srv6";
5480                list evi {
5481                  key "vpn-id";
5482                  description
5483                    "Ethernet VPN identifier for srv6";
5484                  leaf vpn-id {
5485                    type uint32 {
5486                      range "1..65534" {
5487                        description
5488                          "Ethernet VPN ID to set";
5489                      }
5490                    }
5491                    description
5492                      "Ethernet VPN identifier for srv6";
5493                  }
5494                }
5495              }
5496              container vnis {5568              container vnis {
5497                description5569                description
5498                  "VxLAN VPN identifier";5570                  "VxLAN VPN identifier";
5499                list vni {5571                list vni {
5500                  key "vni-id";5572                  key "vni-id";
5501                  description5573                  description
5502                    "VxLAN VPN identifier";5574                    "VxLAN VPN identifier";
5503                  leaf vni-id {5575                  leaf vni-id {
5504                    type uint32 {5576                    type uint32 {
5505                      range "1..16777215" {5577                      range "1..16777215" {
5506                        description5578                        description
5507                          "VxLAN VPN ID to set";5579                          "VxLAN VPN ID to set";
5508                      }5580                      }
5509                    }5581                    }
5510                    description5582                    description
5511                      "VxLAN VPN identifier";5583                      "VxLAN VPN identifier";
5512                  }5584                  }
5513                }5585                }
5514              }5586              }
5515              leaf mtu {5587              leaf mtu {
5516                type uint32 {5588                type uint32 {
5517                  range "46..65535" {5589                  range "46..65535" {
5518                    description5590                    description
5519                      "Maximum transmission unit size (payload) in bytes";5591                      "Maximum transmission unit size (payload) in bytes";
5520                  }5592                  }
5521                }5593                }
5522                description5594                description
5523                  "Maximum transmission unit (payload) for this Bridge Domain";5595                  "Maximum transmission unit (payload) for this Bridge Domain";
5524              }5596              }
5525              container coupled-mode {5597              container coupled-mode {
5526                if-feature "l2vpn_is_cli_supported";5598                if-feature "l2vpn_is_cli_supported";
5527                presence "Indicates a coupled-mode node is configured.";5599                presence "Indicates a coupled-mode node is configured.";
5528                description5600                description
5529                  "Enable coupled mode for the Bridge Domain";5601                  "Enable coupled mode for the Bridge Domain";
5530              }5602              }
5531              container transport-mode {5603              container transport-mode {
5532                description5604                description
5533                  "Bridge domain transport mode";5605                  "Bridge domain transport mode";
5534                container vlan {5606                container vlan {
5535                  description5607                  description
5536                    "Vlan tagged mode";5608                    "Vlan tagged mode";
5537                  container passthrough {5609                  container passthrough {
5538                    presence "Indicates a passthrough node is configured.";5610                    presence "Indicates a passthrough node is configured.";
5539                    description5611                    description
5540                      "passthrough incoming tags";5612                      "passthrough incoming tags";
5541                  }5613                  }
5542                }5614                }
5543              }5615              }
5544              container flooding {5616              container flooding {
5545                description5617                description
5546                  "Traffic flooding";5618                  "Traffic flooding";
5547                container disable {5619                container disable {
5548                  presence "Indicates a disable node is configured.";5620                  presence "Indicates a disable node is configured.";
5549                  description5621                  description
5550                    "Disable flooding";5622                    "Disable flooding";
nn5623                }
5624                container unknown-unicast {
5625                  description
5626                    "Traffic flooding unknown unicast";
5627                  container disable {
5628                    presence "Indicates a disable node is configured.";
5629                    description
5630                      "Disable Unknown Unicast flooding";
5631                  }
5551                }5632                }
5552              }5633              }
5553              container dynamic-arp-inspection {5634              container dynamic-arp-inspection {
5554                presence "Indicates a dynamic-arp-inspection node is configured.";5635                presence "Indicates a dynamic-arp-inspection node is configured.";
5555                description5636                description
5556                  "Dynamic ARP Inspection";5637                  "Dynamic ARP Inspection";
5557                container logging {5638                container logging {
5558                  presence "Indicates a logging node is configured.";5639                  presence "Indicates a logging node is configured.";
5559                  description5640                  description
5560                    "Enable Logging";5641                    "Enable Logging";
5561                }5642                }
5562                container address-validation {5643                container address-validation {
5563                  presence "Indicates a address-validation node is configured.";5644                  presence "Indicates a address-validation node is configured.";
5564                  description5645                  description
5565                    "Address Validation Configurations";5646                    "Address Validation Configurations";
5566                  container src-mac {5647                  container src-mac {
5567                    presence "Indicates a src-mac node is configured.";5648                    presence "Indicates a src-mac node is configured.";
5568                    description5649                    description
5569                      "Match Source MAC Address";5650                      "Match Source MAC Address";
5570                  }5651                  }
5571                  container dst-mac {5652                  container dst-mac {
5572                    presence "Indicates a dst-mac node is configured.";5653                    presence "Indicates a dst-mac node is configured.";
5573                    description5654                    description
5574                      "Match Destination MAC Address";5655                      "Match Destination MAC Address";
5575                  }5656                  }
5576                  container ipv4 {5657                  container ipv4 {
5577                    presence "Indicates a ipv4 node is configured.";5658                    presence "Indicates a ipv4 node is configured.";
5578                    description5659                    description
5579                      "Match IPv4 Address";5660                      "Match IPv4 Address";
5580                  }5661                  }
5581                }5662                }
5582              }5663              }
5583              container ip-source-guard {5664              container ip-source-guard {
5584                presence "Indicates a ip-source-guard node is configured.";5665                presence "Indicates a ip-source-guard node is configured.";
5585                description5666                description
5586                  "IP Source Guard";5667                  "IP Source Guard";
5587                container logging {5668                container logging {
5588                  presence "Indicates a logging node is configured.";5669                  presence "Indicates a logging node is configured.";
5589                  description5670                  description
5590                    "Enable Logging";5671                    "Enable Logging";
5591                }5672                }
5592              }5673              }
5593              container dhcp {5674              container dhcp {
5594                description5675                description
5595                  "DHCP protocol";5676                  "DHCP protocol";
5596                container ipv4 {5677                container ipv4 {
5597                  description5678                  description
5598                    "IP Version 4";5679                    "IP Version 4";
5599                  container snoop {5680                  container snoop {
5600                    description5681                    description
5601                      "Set the snooping profile";5682                      "Set the snooping profile";
5602                    leaf profile {5683                    leaf profile {
5603                      type xr:Cisco-ios-xr-string {5684                      type xr:Cisco-ios-xr-string {
5604                        length "1..32" {5685                        length "1..32" {
5605                          description5686                          description
5606                            "DHCPv4 Snooping profile name";5687                            "DHCPv4 Snooping profile name";
5607                        }5688                        }
5608                      }5689                      }
5609                      description5690                      description
5610                        "Attach a DHCP profile";5691                        "Attach a DHCP profile";
5611                    }5692                    }
5612                  }5693                  }
5613                }5694                }
5614              }5695              }
5615              container igmp {5696              container igmp {
5616                description5697                description
5617                  "IGMP protocol";5698                  "IGMP protocol";
5618                container snooping {5699                container snooping {
5619                  description5700                  description
5620                    "Set the snooping profile";5701                    "Set the snooping profile";
5621                  leaf profile {5702                  leaf profile {
5622                    type xr:Cisco-ios-xr-string {5703                    type xr:Cisco-ios-xr-string {
5623                      length "1..32" {5704                      length "1..32" {
5624                        description5705                        description
5625                          "IGMP Snooping profile name";5706                          "IGMP Snooping profile name";
5626                      }5707                      }
5627                    }5708                    }
5628                    description5709                    description
5629                      "Attach an IGMP profile";5710                      "Attach an IGMP profile";
5630                  }5711                  }
5631                  container disable {5712                  container disable {
5632                    presence "Indicates a disable node is configured.";5713                    presence "Indicates a disable node is configured.";
5633                    description5714                    description
5634                      "disable IGMP snooping for the current bridge domain";5715                      "disable IGMP snooping for the current bridge domain";
5635                  }5716                  }
5636                }5717                }
5637              }5718              }
5638              container mld {5719              container mld {
5639                description5720                description
5640                  "MLD protocol";5721                  "MLD protocol";
5641                container snooping {5722                container snooping {
5642                  description5723                  description
5643                    "Set the snooping profile";5724                    "Set the snooping profile";
5644                  leaf profile {5725                  leaf profile {
5645                    type xr:Cisco-ios-xr-string {5726                    type xr:Cisco-ios-xr-string {
5646                      length "1..32" {5727                      length "1..32" {
5647                        description5728                        description
5648                          "MLD Snooping profile name";5729                          "MLD Snooping profile name";
5649                      }5730                      }
5650                    }5731                    }
5651                    description5732                    description
5652                      "Attach a MLD profile";5733                      "Attach a MLD profile";
5653                  }5734                  }
5654                }5735                }
5655              }5736              }
5656              container storm-control {5737              container storm-control {
5657                description5738                description
5658                  "Storm Control";5739                  "Storm Control";
5659                container broadcast {5740                container broadcast {
5660                  description5741                  description
5661                    "Broadcast Storm Control";5742                    "Broadcast Storm Control";
5662                  leaf pps {5743                  leaf pps {
5663                    type uint32 {5744                    type uint32 {
5664                      range "1..160000" {5745                      range "1..160000" {
5665                        description5746                        description
5666                          "storm control pps value";5747                          "storm control pps value";
5667                      }5748                      }
5668                    }5749                    }
5669                    description5750                    description
5670                      "Set the storm control pps";5751                      "Set the storm control pps";
5671                  }5752                  }
5672                  leaf kbps {5753                  leaf kbps {
5673                    type uint32 {5754                    type uint32 {
5674                      range "64..1280000" {5755                      range "64..1280000" {
5675                        description5756                        description
5676                          "storm control kbps value";5757                          "storm control kbps value";
5677                      }5758                      }
5678                    }5759                    }
5679                    description5760                    description
5680                      "Set the storm control kbps";5761                      "Set the storm control kbps";
5681                  }5762                  }
5682                }5763                }
5683                container multicast {5764                container multicast {
5684                  description5765                  description
5685                    "Multicast Storm Control";5766                    "Multicast Storm Control";
5686                  leaf pps {5767                  leaf pps {
5687                    type uint32 {5768                    type uint32 {
5688                      range "1..160000" {5769                      range "1..160000" {
5689                        description5770                        description
5690                          "storm control pps value";5771                          "storm control pps value";
5691                      }5772                      }
5692                    }5773                    }
5693                    description5774                    description
5694                      "Set the storm control pps";5775                      "Set the storm control pps";
5695                  }5776                  }
5696                  leaf kbps {5777                  leaf kbps {
5697                    type uint32 {5778                    type uint32 {
5698                      range "64..1280000" {5779                      range "64..1280000" {
5699                        description5780                        description
5700                          "storm control kbps value";5781                          "storm control kbps value";
5701                      }5782                      }
5702                    }5783                    }
5703                    description5784                    description
5704                      "Set the storm control kbps";5785                      "Set the storm control kbps";
5705                  }5786                  }
5706                }5787                }
5707                container unknown-unicast {5788                container unknown-unicast {
5708                  description5789                  description
5709                    "Unknown-unicast Storm Control";5790                    "Unknown-unicast Storm Control";
5710                  leaf pps {5791                  leaf pps {
5711                    type uint32 {5792                    type uint32 {
5712                      range "1..160000" {5793                      range "1..160000" {
5713                        description5794                        description
5714                          "storm control pps value";5795                          "storm control pps value";
5715                      }5796                      }
5716                    }5797                    }
5717                    description5798                    description
5718                      "Set the storm control pps";5799                      "Set the storm control pps";
5719                  }5800                  }
5720                  leaf kbps {5801                  leaf kbps {
5721                    type uint32 {5802                    type uint32 {
5722                      range "64..1280000" {5803                      range "64..1280000" {
5723                        description5804                        description
5724                          "storm control kbps value";5805                          "storm control kbps value";
5725                      }5806                      }
5726                    }5807                    }
5727                    description5808                    description
5728                      "Set the storm control kbps";5809                      "Set the storm control kbps";
5729                  }5810                  }
5730                }5811                }
5731              }5812              }
5732              container multicast-source {5813              container multicast-source {
5733                description5814                description
5734                  "Multicast Source Traffic";5815                  "Multicast Source Traffic";
5735                container ipv4 {5816                container ipv4 {
5736                  must "not(../ipv6 or ../ipv4-ipv6)";5817                  must "not(../ipv6 or ../ipv4-ipv6)";
5737                  presence "Indicates a ipv4 node is configured.";5818                  presence "Indicates a ipv4 node is configured.";
5738                  description5819                  description
5739                    "Traffic Type IPv4";5820                    "Traffic Type IPv4";
5740                }5821                }
5741                container ipv6 {5822                container ipv6 {
5742                  must "not(../ipv4 or ../ipv4-ipv6)";5823                  must "not(../ipv4 or ../ipv4-ipv6)";
5743                  presence "Indicates a ipv6 node is configured.";5824                  presence "Indicates a ipv6 node is configured.";
5744                  description5825                  description
5745                    "Traffic Type IPv6";5826                    "Traffic Type IPv6";
5746                }5827                }
5747                container ipv4-ipv6 {5828                container ipv4-ipv6 {
5748                  must "not(../ipv4 or ../ipv6)";5829                  must "not(../ipv4 or ../ipv6)";
5749                  presence "Indicates a ipv4-ipv6 node is configured.";5830                  presence "Indicates a ipv4-ipv6 node is configured.";
5750                  description5831                  description
5751                    "Traffic Type IPv4 and IPv6";5832                    "Traffic Type IPv4 and IPv6";
5752                }5833                }
5753              }5834              }
5754              container interfaces {5835              container interfaces {
5755                description5836                description
5756                  "Assign interface to bridge domain";5837                  "Assign interface to bridge domain";
5757                list interface {5838                list interface {
5758                  if-feature "l2vpn_iflist_intf_supported";5839                  if-feature "l2vpn_iflist_intf_supported";
5759                  key "interface-name";5840                  key "interface-name";
5760                  description5841                  description
5761                    "Specify interface name";5842                    "Specify interface name";
5762                  leaf interface-name {5843                  leaf interface-name {
5763                    type xr:Interface-name;5844                    type xr:Interface-name;
5764                    description5845                    description
5765                      "Specify interface name";5846                      "Specify interface name";
5766                  }5847                  }
5767                  container dhcp {5848                  container dhcp {
5768                    description5849                    description
5769                      "DHCP protocol";5850                      "DHCP protocol";
5770                    container ipv4 {5851                    container ipv4 {
5771                      description5852                      description
5772                        "IP Version 4";5853                        "IP Version 4";
5773                      container none {5854                      container none {
5774                        presence "Indicates a none node is configured.";5855                        presence "Indicates a none node is configured.";
5775                        description5856                        description
5776                          "Disable DHCP snooping";5857                          "Disable DHCP snooping";
5777                      }5858                      }
5778                      container snoop {5859                      container snoop {
5779                        presence "Indicates a snoop node is configured.";5860                        presence "Indicates a snoop node is configured.";
5780                        description5861                        description
5781                          "Set the snooping profile";5862                          "Set the snooping profile";
5782                        leaf profile {5863                        leaf profile {
5783                          type xr:Cisco-ios-xr-string {5864                          type xr:Cisco-ios-xr-string {
5784                            length "1..32" {5865                            length "1..32" {
5785                              description5866                              description
5786                                "DHCPv4 Snooping profile name";5867                                "DHCPv4 Snooping profile name";
5787                            }5868                            }
5788                          }5869                          }
5789                          description5870                          description
5790                            "Attach a DHCP profile";5871                            "Attach a DHCP profile";
5791                        }5872                        }
5792                      }5873                      }
5793                    }5874                    }
5794                  }5875                  }
5795                  container dynamic-arp-inspection {5876                  container dynamic-arp-inspection {
5796                    presence "Indicates a dynamic-arp-inspection node is configured.";5877                    presence "Indicates a dynamic-arp-inspection node is configured.";
5797                    description5878                    description
5798                      "Dynamic ARP Inspection";5879                      "Dynamic ARP Inspection";
5799                    container logging {5880                    container logging {
5800                      presence "Indicates a logging node is configured.";5881                      presence "Indicates a logging node is configured.";
5801                      description5882                      description
5802                        "Enable Logging";5883                        "Enable Logging";
5803                      container disable {5884                      container disable {
5804                        presence "Indicates a disable node is configured.";5885                        presence "Indicates a disable node is configured.";
5805                        description5886                        description
5806                          "disable logging";5887                          "disable logging";
5807                      }5888                      }
5808                    }5889                    }
5809                    container disable {5890                    container disable {
5810                      presence "Indicates a disable node is configured.";5891                      presence "Indicates a disable node is configured.";
5811                      description5892                      description
5812                        "Disable Dynamic Arp Inspection";5893                        "Disable Dynamic Arp Inspection";
5813                    }5894                    }
5814                    container address-validation {5895                    container address-validation {
5815                      presence "Indicates a address-validation node is configured.";5896                      presence "Indicates a address-validation node is configured.";
5816                      description5897                      description
5817                        "Address Validation Configurations";5898                        "Address Validation Configurations";
5818                      container src-mac {5899                      container src-mac {
5819                        presence "Indicates a src-mac node is configured.";5900                        presence "Indicates a src-mac node is configured.";
5820                        description5901                        description
5821                          "Match Source MAC Address";5902                          "Match Source MAC Address";
5822                        container disable {5903                        container disable {
5823                          presence "Indicates a disable node is configured.";5904                          presence "Indicates a disable node is configured.";
5824                          description5905                          description
5825                            "disable Source MAC Address check";5906                            "disable Source MAC Address check";
5826                        }5907                        }
5827                      }5908                      }
5828                      container dst-mac {5909                      container dst-mac {
5829                        presence "Indicates a dst-mac node is configured.";5910                        presence "Indicates a dst-mac node is configured.";
5830                        description5911                        description
5831                          "Match Destination MAC Address";5912                          "Match Destination MAC Address";
5832                        container disable {5913                        container disable {
5833                          presence "Indicates a disable node is configured.";5914                          presence "Indicates a disable node is configured.";
5834                          description5915                          description
5835                            "disable Destimation MAC Address check";5916                            "disable Destimation MAC Address check";
5836                        }5917                        }
5837                      }5918                      }
5838                      container ipv4 {5919                      container ipv4 {
5839                        presence "Indicates a ipv4 node is configured.";5920                        presence "Indicates a ipv4 node is configured.";
5840                        description5921                        description
5841                          "Match IPv4 Address";5922                          "Match IPv4 Address";
5842                        container disable {5923                        container disable {
5843                          presence "Indicates a disable node is configured.";5924                          presence "Indicates a disable node is configured.";
5844                          description5925                          description
5845                            "disable IPV4 Address check";5926                            "disable IPV4 Address check";
5846                        }5927                        }
5847                      }5928                      }
5848                    }5929                    }
5849                  }5930                  }
5850                  container flooding {5931                  container flooding {
5851                    description5932                    description
5852                      "Traffic flooding";5933                      "Traffic flooding";
5853                    container disable {5934                    container disable {
5854                      presence "Indicates a disable node is configured.";5935                      presence "Indicates a disable node is configured.";
5855                      description5936                      description
5856                        "Disable flooding";5937                        "Disable flooding";
5857                    }5938                    }
nn5939                    container unknown-unicast {
5940                      description
5941                        "Traffic flooding unknown unicast";
5942                      container disable {
5943                        presence "Indicates a disable node is configured.";
5944                        description
5945                          "Disable Unknown Unicast flooding";
5946                      }
5947                    }
5858                  }5948                  }
5859                  container igmp {5949                  container igmp {
5860                    description5950                    description
5861                      "IGMP protocol";5951                      "IGMP protocol";
5862                    container snooping {5952                    container snooping {
5863                      description5953                      description
5864                        "Set the snooping profile";5954                        "Set the snooping profile";
5865                      leaf profile {5955                      leaf profile {
5866                        type xr:Cisco-ios-xr-string {5956                        type xr:Cisco-ios-xr-string {
5867                          length "1..32" {5957                          length "1..32" {
5868                            description5958                            description
5869                              "IGMP Snooping profile name";5959                              "IGMP Snooping profile name";
5870                          }5960                          }
5871                        }5961                        }
5872                        description5962                        description
5873                          "Attach an IGMP profile";5963                          "Attach an IGMP profile";
5874                      }5964                      }
5875                    }5965                    }
5876                  }5966                  }
5877                  container ip-source-guard {5967                  container ip-source-guard {
5878                    presence "Indicates a ip-source-guard node is configured.";5968                    presence "Indicates a ip-source-guard node is configured.";
5879                    description5969                    description
5880                      "IP Source Guard";5970                      "IP Source Guard";
5881                    container logging {5971                    container logging {
5882                      presence "Indicates a logging node is configured.";5972                      presence "Indicates a logging node is configured.";
5883                      description5973                      description
5884                        "Enable Logging";5974                        "Enable Logging";
5885                      container disable {5975                      container disable {
5886                        presence "Indicates a disable node is configured.";5976                        presence "Indicates a disable node is configured.";
5887                        description5977                        description
5888                          "disable logging";5978                          "disable logging";
5889                      }5979                      }
5890                    }5980                    }
5891                    container disable {5981                    container disable {
5892                      presence "Indicates a disable node is configured.";5982                      presence "Indicates a disable node is configured.";
5893                      description5983                      description
5894                        "Disable IP Source Guard";5984                        "Disable IP Source Guard";
5895                    }5985                    }
5896                  }5986                  }
5897                  container mac {5987                  container mac {
5898                    description5988                    description
5899                      "MAC configuration commands";5989                      "MAC configuration commands";
5900                    container aging {5990                    container aging {
5901                      if-feature "l2vpn_is_cli_supported";5991                      if-feature "l2vpn_is_cli_supported";
5902                      description5992                      description
5903                        "MAC-Aging configuration commands";5993                        "MAC-Aging configuration commands";
5904                      leaf time {5994                      leaf time {
5905                        type uint32 {5995                        type uint32 {
5906                          range "300..30000" {5996                          range "300..30000" {
5907                            description5997                            description
5908                              "MAC address aging time in seconds";5998                              "MAC address aging time in seconds";
5909                          }5999                          }
5910                        }6000                        }
5911                        description6001                        description
5912                          "Mac aging";6002                          "Mac aging";
5913                      }6003                      }
5914                      container type {6004                      container type {
5915                        description6005                        description
5916                          "MAC address aging type";6006                          "MAC address aging type";
5917                        container absolute {6007                        container absolute {
5918                          presence "Indicates a absolute node is configured.";6008                          presence "Indicates a absolute node is configured.";
5919                          description6009                          description
5920                            "Absolute aging type";6010                            "Absolute aging type";
5921                        }6011                        }
5922                        container inactivity {6012                        container inactivity {
5923                          must "not(../absolute)";6013                          must "not(../absolute)";
5924                          presence "Indicates a inactivity node is configured.";6014                          presence "Indicates a inactivity node is configured.";
5925                          description6015                          description
5926                            "Inactivity aging type";6016                            "Inactivity aging type";
5927                        }6017                        }
5928                      }6018                      }
5929                    }6019                    }
5930                    container learning {6020                    container learning {
5931                      presence "Indicates a learning node is configured.";6021                      presence "Indicates a learning node is configured.";
5932                      description6022                      description
5933                        "MAC learning";6023                        "MAC learning";
5934                      container disable {6024                      container disable {
5935                        presence "Indicates a disable node is configured.";6025                        presence "Indicates a disable node is configured.";
5936                        description6026                        description
5937                          "Disable MAC learning";6027                          "Disable MAC learning";
5938                      }6028                      }
5939                    }6029                    }
5940                    container limit {6030                    container limit {
5941                      description6031                      description
5942                        "MAC-Limit configuration commands";6032                        "MAC-Limit configuration commands";
5943                      leaf maximum {6033                      leaf maximum {
5944                        type uint32 {6034                        type uint32 {
5945                          range "0..4294967295" {6035                          range "0..4294967295" {
5946                            description6036                            description
5947                              "Number of MAC addresses after which MAC limit action is taken";6037                              "Number of MAC addresses after which MAC limit action is taken";
5948                          }6038                          }
5949                        }6039                        }
5950                        description6040                        description
5951                          "Number of MAC addresses after which MAC limit action is taken";6041                          "Number of MAC addresses after which MAC limit action is taken";
5952                      }6042                      }
5953                      container action {6043                      container action {
5954                        description6044                        description
5955                          "MAC address limit enforcement action";6045                          "MAC address limit enforcement action";
5956                        container flood {6046                        container flood {
5957                          must "not(../no-flood or ../shutdown or ../none)";6047                          must "not(../no-flood or ../shutdown or ../none)";
5958                          presence "Indicates a flood node is configured.";6048                          presence "Indicates a flood node is configured.";
5959                          description6049                          description
5960                            "Stop learning but continue flooding";6050                            "Stop learning but continue flooding";
5961                        }6051                        }
5962                        container no-flood {6052                        container no-flood {
5963                          must "not(../flood or ../shutdown or ../none)";6053                          must "not(../flood or ../shutdown or ../none)";
5964                          presence "Indicates a no-flood node is configured.";6054                          presence "Indicates a no-flood node is configured.";
5965                          description6055                          description
5966                            "Stop learning and stop flooding";6056                            "Stop learning and stop flooding";
5967                        }6057                        }
5968                        container shutdown {6058                        container shutdown {
5969                          must "not(../flood or ../no-flood or ../none)";6059                          must "not(../flood or ../no-flood or ../none)";
5970                          presence "Indicates a shutdown node is configured.";6060                          presence "Indicates a shutdown node is configured.";
5971                          description6061                          description
5972                            "Stop forwarding";6062                            "Stop forwarding";
5973                        }6063                        }
5974                        container none {6064                        container none {
5975                          must "not(../flood or ../no-flood or ../shutdown)";6065                          must "not(../flood or ../no-flood or ../shutdown)";
5976                          presence "Indicates a none node is configured.";6066                          presence "Indicates a none node is configured.";
5977                          description6067                          description
5978                            "No action";6068                            "No action";
5979                        }6069                        }
5980                      }6070                      }
5981                      container notification {6071                      container notification {
5982                        description6072                        description
5983                          "MAC address limit notification action";6073                          "MAC address limit notification action";
5984                        container trap {6074                        container trap {
5985                          must "not(../both or ../none or ../syslog)";6075                          must "not(../both or ../none or ../syslog)";
5986                          presence "Indicates a trap node is configured.";6076                          presence "Indicates a trap node is configured.";
5987                          description6077                          description
5988                            "Generate SNMP trap";6078                            "Generate SNMP trap";
5989                        }6079                        }
5990                        container both {6080                        container both {
5991                          must "not(../trap or ../none or ../syslog)";6081                          must "not(../trap or ../none or ../syslog)";
5992                          presence "Indicates a both node is configured.";6082                          presence "Indicates a both node is configured.";
5993                          description6083                          description
5994                            "Generate syslog message and SNMP trap";6084                            "Generate syslog message and SNMP trap";
5995                        }6085                        }
5996                        container none {6086                        container none {
5997                          must "not(../trap or ../both or ../syslog)";6087                          must "not(../trap or ../both or ../syslog)";
5998                          presence "Indicates a none node is configured.";6088                          presence "Indicates a none node is configured.";
5999                          description6089                          description
6000                            "No notification";6090                            "No notification";
6001                        }6091                        }
6002                        container syslog {6092                        container syslog {
6003                          must "not(../trap or ../both or ../none)";6093                          must "not(../trap or ../both or ../none)";
6004                          presence "Indicates a syslog node is configured.";6094                          presence "Indicates a syslog node is configured.";
6005                          description6095                          description
6006                            "Generate syslog message";6096                            "Generate syslog message";
6007                        }6097                        }
6008                      }6098                      }
6009                    }6099                    }
6010                    container port-down {6100                    container port-down {
6011                      description6101                      description
6012                        "Configure action when port goes down";6102                        "Configure action when port goes down";
6013                      container flush {6103                      container flush {
6014                        description6104                        description
6015                          "Configure MAC flush when port goes down";6105                          "Configure MAC flush when port goes down";
6016                        container disable {6106                        container disable {
6017                          presence "Indicates a disable node is configured.";6107                          presence "Indicates a disable node is configured.";
6018                          description6108                          description
6019                            "Disable MAC flush when port goes down";6109                            "Disable MAC flush when port goes down";
6020                        }6110                        }
6021                      }6111                      }
6022                    }6112                    }
6023                    container secure {6113                    container secure {
6024                      presence "Indicates a secure node is configured.";6114                      presence "Indicates a secure node is configured.";
6025                      description6115                      description
6026                        "MAC Secure configuration commands";6116                        "MAC Secure configuration commands";
6027                      container logging {6117                      container logging {
6028                        presence "Indicates a logging node is configured.";6118                        presence "Indicates a logging node is configured.";
6029                        description6119                        description
6030                          "Enable Logging";6120                          "Enable Logging";
6031                        container disable {6121                        container disable {
6032                          presence "Indicates a disable node is configured.";6122                          presence "Indicates a disable node is configured.";
6033                          description6123                          description
6034                            "disable logging";6124                            "disable logging";
6035                        }6125                        }
6036                      }6126                      }
6037                      container action {6127                      container action {
6038                        description6128                        description
6039                          "MAC secure enforcement action";6129                          "MAC secure enforcement action";
6040                        container none {6130                        container none {
6041                          must "not(../shutdown)";6131                          must "not(../shutdown)";
6042                          presence "Indicates a none node is configured.";6132                          presence "Indicates a none node is configured.";
6043                          description6133                          description
6044                            "Forward the violating packet and allow the MAC to be relearned";6134                            "Forward the violating packet and allow the MAC to be relearned";
6045                        }6135                        }
6046                        container shutdown {6136                        container shutdown {
6047                          must "not(../none)";6137                          must "not(../none)";
6048                          presence "Indicates a shutdown node is configured.";6138                          presence "Indicates a shutdown node is configured.";
6049                          description6139                          description
6050                            "Shutdown the violating bridge port";6140                            "Shutdown the violating bridge port";
6051                        }6141                        }
6052                        container restrict {6142                        container restrict {
6053                          must "not(../none or ../shutdown)";6143                          must "not(../none or ../shutdown)";
6054                          presence "Indicates a restrict node is configured.";6144                          presence "Indicates a restrict node is configured.";
6055                          description6145                          description
6056                            "Drop the violating packet and not allow the MAC to be relearned";6146                            "Drop the violating packet and not allow the MAC to be relearned";
6057                        }6147                        }
6058                      }6148                      }
6059                      container disable {6149                      container disable {
6060                        presence "Indicates a disable node is configured.";6150                        presence "Indicates a disable node is configured.";
6061                        description6151                        description
6062                          "Disable MAC Secure";6152                          "Disable MAC Secure";
6063                      }6153                      }
6064                      container shutdown-recovery-timeout {6154                      container shutdown-recovery-timeout {
6065                        description6155                        description
6066                          "Recovery-timer to automatically revert shutdown action";6156                          "Recovery-timer to automatically revert shutdown action";
6067                        container disable {6157                        container disable {
6068                          must "not(../recovery-timer-in-second)";6158                          must "not(../recovery-timer-in-second)";
6069                          presence "Indicates a disable node is configured.";6159                          presence "Indicates a disable node is configured.";
6070                          description6160                          description
6071                            "Disable shutdown recovery timer";6161                            "Disable shutdown recovery timer";
6072                        }6162                        }
6073                        leaf recovery-timer-in-second {6163                        leaf recovery-timer-in-second {
6074                          type uint32 {6164                          type uint32 {
6075                            range "10..3600" {6165                            range "10..3600" {
6076                              description6166                              description
6077                                "Recovery timer in second";6167                                "Recovery timer in second";
6078                            }6168                            }
6079                          }6169                          }
6080                          must "not(../disable)";6170                          must "not(../disable)";
6081                          description6171                          description
6082                            "Recovery timer in second";6172                            "Recovery timer in second";
6083                        }6173                        }
6084                      }6174                      }
6085                    }6175                    }
6086                  }6176                  }
6087                  container mld {6177                  container mld {
6088                    description6178                    description
6089                      "MLD protocol";6179                      "MLD protocol";
6090                    container snooping {6180                    container snooping {
6091                      description6181                      description
6092                        "Set the snooping profile";6182                        "Set the snooping profile";
6093                      leaf profile {6183                      leaf profile {
6094                        type xr:Cisco-ios-xr-string {6184                        type xr:Cisco-ios-xr-string {
6095                          length "1..32" {6185                          length "1..32" {
6096                            description6186                            description
6097                              "MLD Snooping profile name";6187                              "MLD Snooping profile name";
6098                          }6188                          }
6099                        }6189                        }
6100                        description6190                        description
6101                          "Attach a MLD profile";6191                          "Attach a MLD profile";
6102                      }6192                      }
6103                    }6193                    }
6104                  }6194                  }
6105                  container storm-control {6195                  container storm-control {
6106                    description6196                    description
6107                      "Storm Control";6197                      "Storm Control";
6108                    container broadcast {6198                    container broadcast {
6109                      description6199                      description
6110                        "Broadcast Storm Control";6200                        "Broadcast Storm Control";
6111                      leaf pps {6201                      leaf pps {
6112                        type uint32 {6202                        type uint32 {
6113                          range "1..160000" {6203                          range "1..160000" {
6114                            description6204                            description
6115                              "storm control pps value";6205                              "storm control pps value";
6116                          }6206                          }
6117                        }6207                        }
6118                        description6208                        description
6119                          "Set the storm control pps";6209                          "Set the storm control pps";
6120                      }6210                      }
6121                      leaf kbps {6211                      leaf kbps {
6122                        type uint32 {6212                        type uint32 {
6123                          range "64..1280000" {6213                          range "64..1280000" {
6124                            description6214                            description
6125                              "storm control kbps value";6215                              "storm control kbps value";
6126                          }6216                          }
6127                        }6217                        }
6128                        description6218                        description
6129                          "Set the storm control kbps";6219                          "Set the storm control kbps";
6130                      }6220                      }
6131                    }6221                    }
6132                    container multicast {6222                    container multicast {
6133                      description6223                      description
6134                        "Multicast Storm Control";6224                        "Multicast Storm Control";
6135                      leaf pps {6225                      leaf pps {
6136                        type uint32 {6226                        type uint32 {
6137                          range "1..160000" {6227                          range "1..160000" {
6138                            description6228                            description
6139                              "storm control pps value";6229                              "storm control pps value";
6140                          }6230                          }
6141                        }6231                        }
6142                        description6232                        description
6143                          "Set the storm control pps";6233                          "Set the storm control pps";
6144                      }6234                      }
6145                      leaf kbps {6235                      leaf kbps {
6146                        type uint32 {6236                        type uint32 {
6147                          range "64..1280000" {6237                          range "64..1280000" {
6148                            description6238                            description
6149                              "storm control kbps value";6239                              "storm control kbps value";
6150                          }6240                          }
6151                        }6241                        }
6152                        description6242                        description
6153                          "Set the storm control kbps";6243                          "Set the storm control kbps";
6154                      }6244                      }
6155                    }6245                    }
6156                    container unknown-unicast {6246                    container unknown-unicast {
6157                      description6247                      description
6158                        "Unknown-unicast Storm Control";6248                        "Unknown-unicast Storm Control";
6159                      leaf pps {6249                      leaf pps {
6160                        type uint32 {6250                        type uint32 {
6161                          range "1..160000" {6251                          range "1..160000" {
6162                            description6252                            description
6163                              "storm control pps value";6253                              "storm control pps value";
6164                          }6254                          }
6165                        }6255                        }
6166                        description6256                        description
6167                          "Set the storm control pps";6257                          "Set the storm control pps";
6168                      }6258                      }
6169                      leaf kbps {6259                      leaf kbps {
6170                        type uint32 {6260                        type uint32 {
6171                          range "64..1280000" {6261                          range "64..1280000" {
6172                            description6262                            description
6173                              "storm control kbps value";6263                              "storm control kbps value";
6174                          }6264                          }
6175                        }6265                        }
6176                        description6266                        description
6177                          "Set the storm control kbps";6267                          "Set the storm control kbps";
6178                      }6268                      }
6179                    }6269                    }
6180                  }6270                  }
6181                  container split-horizon {6271                  container split-horizon {
6182                    description6272                    description
6183                      "Configure split-horizon group";6273                      "Configure split-horizon group";
6184                    container group {6274                    container group {
6185                      presence "Indicates a group node is configured.";6275                      presence "Indicates a group node is configured.";
6186                      description6276                      description
6187                        "Configure split-horizon group";6277                        "Configure split-horizon group";
6188                    }6278                    }
6189                  }6279                  }
6190                  container static-mac-addresses {6280                  container static-mac-addresses {
6191                    description6281                    description
6192                      "Static MAC address";6282                      "Static MAC address";
6193                    list static-mac-address {6283                    list static-mac-address {
6194                      key "mac-address";6284                      key "mac-address";
6195                      description6285                      description
6196                        "Static MAC address";6286                        "Static MAC address";
6197                      leaf mac-address {6287                      leaf mac-address {
6198                        type yang:mac-address;6288                        type yang:mac-address;
6199                        description6289                        description
6200                          "Static MAC address";6290                          "Static MAC address";
6201                      }6291                      }
6202                    }6292                    }
6203                  }6293                  }
6204                }6294                }
6205              }6295              }
6206              container routed {6296              container routed {
6207                description6297                description
6208                  "Bridge domain L3 interface";6298                  "Bridge domain L3 interface";
6209                list interface {6299                list interface {
6210                  key "interface-name";6300                  key "interface-name";
6211                  description6301                  description
6212                    "Assign interface to bridge domain";6302                    "Assign interface to bridge domain";
6213                  leaf interface-name {6303                  leaf interface-name {
6214                    type xr:Interface-name;6304                    type xr:Interface-name;
6215                    description6305                    description
6216                      "Assign interface to bridge domain";6306                      "Assign interface to bridge domain";
6217                  }6307                  }
6218                  container split-horizon {6308                  container split-horizon {
6219                    description6309                    description
6220                      "Configure split-horizon group";6310                      "Configure split-horizon group";
6221                    container group {6311                    container group {
6222                      description6312                      description
6223                        "Configure split-horizon group";6313                        "Configure split-horizon group";
6224                      container core {6314                      container core {
6225                        presence "Indicates a core node is configured.";6315                        presence "Indicates a core node is configured.";
6226                        description6316                        description
6227                          "Configure BVI under SHG 1";6317                          "Configure BVI under SHG 1";
6228                      }6318                      }
6229                    }6319                    }
6230                  }6320                  }
6231                }6321                }
6232              }6322              }
6233              container shutdown {6323              container shutdown {
6234                presence "Indicates a shutdown node is configured.";6324                presence "Indicates a shutdown node is configured.";
6235                description6325                description
6236                  "shutdown the Bridge Domain";6326                  "shutdown the Bridge Domain";
6237              }6327              }
6238              container vfis {6328              container vfis {
6239                description6329                description
6240                  "Specify the virtual forwarding interface name";6330                  "Specify the virtual forwarding interface name";
6241                list vfi {6331                list vfi {
6242                  key "vfi-name";6332                  key "vfi-name";
6243                  description6333                  description
6244                    "Specify the virtual forwarding interface name";6334                    "Specify the virtual forwarding interface name";
6245                  leaf vfi-name {6335                  leaf vfi-name {
6246                    type xr:Cisco-ios-xr-string {6336                    type xr:Cisco-ios-xr-string {
6247                      length "1..32" {6337                      length "1..32" {
6248                        description6338                        description
6249                          "Name of the Virtual Forwarding Interface";6339                          "Name of the Virtual Forwarding Interface";
6250                      }6340                      }
6251                    }6341                    }
6252                    description6342                    description
6253                      "Specify the virtual forwarding interface name";6343                      "Specify the virtual forwarding interface name";
6254                  }6344                  }
6255                  leaf vpn-id {6345                  leaf vpn-id {
6256                    type uint32 {6346                    type uint32 {
6257                      range "1..4294967295" {6347                      range "1..4294967295" {
6258                        description6348                        description
6259                          "Value of the VPN ID";6349                          "Value of the VPN ID";
6260                      }6350                      }
6261                    }6351                    }
6262                    description6352                    description
6263                      "VPN Identifier (VPN ID)";6353                      "VPN Identifier (VPN ID)";
6264                  }6354                  }
6265                  container shutdown {6355                  container shutdown {
6266                    presence "Indicates a shutdown node is configured.";6356                    presence "Indicates a shutdown node is configured.";
6267                    description6357                    description
6268                      "shutdown the Virtual Forwarding Interface";6358                      "shutdown the Virtual Forwarding Interface";
6269                  }6359                  }
6270                  container autodiscovery {6360                  container autodiscovery {
6271                    description6361                    description
6272                      "Enable auto-discovery in this VFI";6362                      "Enable auto-discovery in this VFI";
6273                    container bgp {6363                    container bgp {
6274                      presence "Indicates a bgp node is configured.";6364                      presence "Indicates a bgp node is configured.";
6275                      description6365                      description
6276                        "Enable BGP auto-discovery in this VFI";6366                        "Enable BGP auto-discovery in this VFI";
6277                      container rd {6367                      container rd {
6278                        description6368                        description
6279                          "route distinguisher";6369                          "route distinguisher";
6280                        container auto {6370                        container auto {
6281                          must "not(../two-byte-as-number or ../four-byte-as-number or ../ipv4-address)";6371                          must "not(../two-byte-as-number or ../four-byte-as-number or ../ipv4-address)";
6282                          presence "Indicates a auto node is configured.";6372                          presence "Indicates a auto node is configured.";
6283                          description6373                          description
6284                            "Automatic route distinguisher";6374                            "Automatic route distinguisher";
6285                        }6375                        }
6286                        leaf two-byte-as-number {6376                        leaf two-byte-as-number {
6287                          type uint32 {6377                          type uint32 {
6288                            range "1..65535" {6378                            range "1..65535" {
6289                              description6379                              description
6290                                "Two Byte AS number";6380                                "Two Byte AS number";
6291                            }6381                            }
6292                          }6382                          }
n6293                          must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n6383                          must "not(../four-byte-as-number or ../ipv4-address)";
6294                          description6384                          description
6295                            "Two Byte AS number";6385                            "Two Byte AS number";
6296                        }6386                        }
6297                        leaf two-byte-as-assigned-number {6387                        leaf two-byte-as-assigned-number {
6298                          type uint32 {6388                          type uint32 {
6299                            range "0..4294967295" {6389                            range "0..4294967295" {
6300                              description6390                              description
6301                                "AS:nn (hex or decimal format)";6391                                "AS:nn (hex or decimal format)";
6302                            }6392                            }
6303                          }6393                          }
6304                          must "../two-byte-as-number";6394                          must "../two-byte-as-number";
6305                          description6395                          description
6306                            "AS:nn (hex or decimal format)";6396                            "AS:nn (hex or decimal format)";
6307                        }6397                        }
6308                        leaf four-byte-as-number {6398                        leaf four-byte-as-number {
6309                          type uint32 {6399                          type uint32 {
6310                            range "65536..4294967295" {6400                            range "65536..4294967295" {
6311                              description6401                              description
6312                                "Four Byte AS number";6402                                "Four Byte AS number";
6313                            }6403                            }
6314                          }6404                          }
n6315                          must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n6405                          must "not(../two-byte-as-number or ../ipv4-address)";
6316                          description6406                          description
6317                            "Four Byte AS number";6407                            "Four Byte AS number";
6318                        }6408                        }
6319                        leaf four-byte-as-assigned-number {6409                        leaf four-byte-as-assigned-number {
6320                          type uint32 {6410                          type uint32 {
6321                            range "0..65535" {6411                            range "0..65535" {
6322                              description6412                              description
6323                                "AS:nn (hex or decimal format)";6413                                "AS:nn (hex or decimal format)";
6324                            }6414                            }
6325                          }6415                          }
6326                          must "../four-byte-as-number";6416                          must "../four-byte-as-number";
6327                          description6417                          description
6328                            "AS:nn (hex or decimal format)";6418                            "AS:nn (hex or decimal format)";
6329                        }6419                        }
6330                        leaf ipv4-address {6420                        leaf ipv4-address {
6331                          type inet:ipv4-address-no-zone;6421                          type inet:ipv4-address-no-zone;
n6332                          must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n6422                          must "not(../two-byte-as-number or ../four-byte-as-number)";
6333                          description6423                          description
6334                            "IP address";6424                            "IP address";
6335                        }6425                        }
6336                        leaf ipv4-address-assigned-number {6426                        leaf ipv4-address-assigned-number {
6337                          type uint32 {6427                          type uint32 {
6338                            range "0..65535" {6428                            range "0..65535" {
6339                              description6429                              description
6340                                "IP-address:nn (hex or decimal format)";6430                                "IP-address:nn (hex or decimal format)";
6341                            }6431                            }
6342                          }6432                          }
6343                          must "../ipv4-address";6433                          must "../ipv4-address";
6344                          description6434                          description
6345                            "IP-address:nn (hex or decimal format)";6435                            "IP-address:nn (hex or decimal format)";
6346                        }6436                        }
6347                      }6437                      }
6348                      container route-target {6438                      container route-target {
6349                        description6439                        description
6350                          "Route Target";6440                          "Route Target";
6351                        container import {6441                        container import {
6352                          description6442                          description
6353                            "Import Route Target";6443                            "Import Route Target";
6354                          container two-byte-as-rts {6444                          container two-byte-as-rts {
6355                            description6445                            description
6356                              "Two Byte AS Number Route Target";6446                              "Two Byte AS Number Route Target";
6357                            list two-byte-as-rt {6447                            list two-byte-as-rt {
6358                              key "two-byte-as-number assigned-number";6448                              key "two-byte-as-number assigned-number";
6359                              description6449                              description
6360                                "Two Byte AS Number Route Target";6450                                "Two Byte AS Number Route Target";
6361                              leaf two-byte-as-number {6451                              leaf two-byte-as-number {
6362                                type uint32 {6452                                type uint32 {
6363                                  range "1..65535";6453                                  range "1..65535";
6364                                }6454                                }
6365                                description6455                                description
6366                                  "Two Byte AS Number";6456                                  "Two Byte AS Number";
6367                              }6457                              }
6368                              leaf assigned-number {6458                              leaf assigned-number {
6369                                type uint32 {6459                                type uint32 {
6370                                  range "0..4294967295" {6460                                  range "0..4294967295" {
6371                                    description6461                                    description
6372                                      "AS:nn (hex or decimal format)";6462                                      "AS:nn (hex or decimal format)";
6373                                  }6463                                  }
6374                                }6464                                }
6375                                description6465                                description
6376                                  "AS:nn (hex or decimal format)";6466                                  "AS:nn (hex or decimal format)";
6377                              }6467                              }
6378                            }6468                            }
6379                          }6469                          }
6380                          container four-byte-as-rts {6470                          container four-byte-as-rts {
6381                            description6471                            description
6382                              "Four Byte AS number Route Target";6472                              "Four Byte AS number Route Target";
6383                            list four-byte-as-rt {6473                            list four-byte-as-rt {
6384                              key "four-byte-as-number assigned-number";6474                              key "four-byte-as-number assigned-number";
6385                              description6475                              description
6386                                "Four Byte AS number Route Target";6476                                "Four Byte AS number Route Target";
6387                              leaf four-byte-as-number {6477                              leaf four-byte-as-number {
6388                                type uint32 {6478                                type uint32 {
6389                                  range "65536..4294967295";6479                                  range "65536..4294967295";
6390                                }6480                                }
6391                                description6481                                description
6392                                  "Four Byte AS number";6482                                  "Four Byte AS number";
6393                              }6483                              }
6394                              leaf assigned-number {6484                              leaf assigned-number {
6395                                type uint32 {6485                                type uint32 {
6396                                  range "0..65535" {6486                                  range "0..65535" {
6397                                    description6487                                    description
6398                                      "AS:nn (hex or decimal format)";6488                                      "AS:nn (hex or decimal format)";
6399                                  }6489                                  }
6400                                }6490                                }
6401                                description6491                                description
6402                                  "AS:nn (hex or decimal format)";6492                                  "AS:nn (hex or decimal format)";
6403                              }6493                              }
6404                            }6494                            }
6405                          }6495                          }
6406                          container ipv4-address-rts {6496                          container ipv4-address-rts {
6407                            description6497                            description
6408                              "IP address Route Target";6498                              "IP address Route Target";
6409                            list ipv4-address-rt {6499                            list ipv4-address-rt {
6410                              key "ipv4-address assigned-number";6500                              key "ipv4-address assigned-number";
6411                              description6501                              description
6412                                "IP address";6502                                "IP address";
6413                              leaf ipv4-address {6503                              leaf ipv4-address {
6414                                type inet:ipv4-address-no-zone;6504                                type inet:ipv4-address-no-zone;
6415                                description6505                                description
6416                                  "IP address";6506                                  "IP address";
6417                              }6507                              }
6418                              leaf assigned-number {6508                              leaf assigned-number {
6419                                type uint32 {6509                                type uint32 {
6420                                  range "0..65535" {6510                                  range "0..65535" {
6421                                    description6511                                    description
6422                                      "IP-address:nn (hex or decimal format)";6512                                      "IP-address:nn (hex or decimal format)";
6423                                  }6513                                  }
6424                                }6514                                }
6425                                description6515                                description
6426                                  "IP-address:nn (hex or decimal format)";6516                                  "IP-address:nn (hex or decimal format)";
6427                              }6517                              }
6428                            }6518                            }
6429                          }6519                          }
6430                        }6520                        }
6431                        container export {6521                        container export {
6432                          description6522                          description
6433                            "Export Route Target";6523                            "Export Route Target";
6434                          container two-byte-as-rts {6524                          container two-byte-as-rts {
6435                            description6525                            description
6436                              "Two Byte AS Number Route Target";6526                              "Two Byte AS Number Route Target";
6437                            list two-byte-as-rt {6527                            list two-byte-as-rt {
6438                              key "two-byte-as-number assigned-number";6528                              key "two-byte-as-number assigned-number";
6439                              description6529                              description
6440                                "Two Byte AS Number Route Target";6530                                "Two Byte AS Number Route Target";
6441                              leaf two-byte-as-number {6531                              leaf two-byte-as-number {
6442                                type uint32 {6532                                type uint32 {
6443                                  range "1..65535";6533                                  range "1..65535";
6444                                }6534                                }
6445                                description6535                                description
6446                                  "Two Byte AS Number";6536                                  "Two Byte AS Number";
6447                              }6537                              }
6448                              leaf assigned-number {6538                              leaf assigned-number {
6449                                type uint32 {6539                                type uint32 {
6450                                  range "0..4294967295" {6540                                  range "0..4294967295" {
6451                                    description6541                                    description
6452                                      "AS:nn (hex or decimal format)";6542                                      "AS:nn (hex or decimal format)";
6453                                  }6543                                  }
6454                                }6544                                }
6455                                description6545                                description
6456                                  "AS:nn (hex or decimal format)";6546                                  "AS:nn (hex or decimal format)";
6457                              }6547                              }
6458                            }6548                            }
6459                          }6549                          }
6460                          container four-byte-as-rts {6550                          container four-byte-as-rts {
6461                            description6551                            description
6462                              "Four Byte AS number Route Target";6552                              "Four Byte AS number Route Target";
6463                            list four-byte-as-rt {6553                            list four-byte-as-rt {
6464                              key "four-byte-as-number assigned-number";6554                              key "four-byte-as-number assigned-number";
6465                              description6555                              description
6466                                "Four Byte AS number Route Target";6556                                "Four Byte AS number Route Target";
6467                              leaf four-byte-as-number {6557                              leaf four-byte-as-number {
6468                                type uint32 {6558                                type uint32 {
6469                                  range "65536..4294967295";6559                                  range "65536..4294967295";
6470                                }6560                                }
6471                                description6561                                description
6472                                  "Four Byte AS number";6562                                  "Four Byte AS number";
6473                              }6563                              }
6474                              leaf assigned-number {6564                              leaf assigned-number {
6475                                type uint32 {6565                                type uint32 {
6476                                  range "0..65535" {6566                                  range "0..65535" {
6477                                    description6567                                    description
6478                                      "AS:nn (hex or decimal format)";6568                                      "AS:nn (hex or decimal format)";
6479                                  }6569                                  }
6480                                }6570                                }
6481                                description6571                                description
6482                                  "AS:nn (hex or decimal format)";6572                                  "AS:nn (hex or decimal format)";
6483                              }6573                              }
6484                            }6574                            }
6485                          }6575                          }
6486                          container ipv4-address-rts {6576                          container ipv4-address-rts {
6487                            description6577                            description
6488                              "IP address Route Target";6578                              "IP address Route Target";
6489                            list ipv4-address-rt {6579                            list ipv4-address-rt {
6490                              key "ipv4-address assigned-number";6580                              key "ipv4-address assigned-number";
6491                              description6581                              description
6492                                "IP address";6582                                "IP address";
6493                              leaf ipv4-address {6583                              leaf ipv4-address {
6494                                type inet:ipv4-address-no-zone;6584                                type inet:ipv4-address-no-zone;
6495                                description6585                                description
6496                                  "IP address";6586                                  "IP address";
6497                              }6587                              }
6498                              leaf assigned-number {6588                              leaf assigned-number {
6499                                type uint32 {6589                                type uint32 {
6500                                  range "0..65535" {6590                                  range "0..65535" {
6501                                    description6591                                    description
6502                                      "IP-address:nn (hex or decimal format)";6592                                      "IP-address:nn (hex or decimal format)";
6503                                  }6593                                  }
6504                                }6594                                }
6505                                description6595                                description
6506                                  "IP-address:nn (hex or decimal format)";6596                                  "IP-address:nn (hex or decimal format)";
6507                              }6597                              }
6508                            }6598                            }
6509                          }6599                          }
6510                        }6600                        }
6511                        container two-byte-as-rts {6601                        container two-byte-as-rts {
6512                          description6602                          description
6513                            "Two Byte AS Number Route Target";6603                            "Two Byte AS Number Route Target";
6514                          list two-byte-as-rt {6604                          list two-byte-as-rt {
6515                            key "two-byte-as-number assigned-number";6605                            key "two-byte-as-number assigned-number";
6516                            description6606                            description
6517                              "Two Byte AS Number Route Target";6607                              "Two Byte AS Number Route Target";
6518                            leaf two-byte-as-number {6608                            leaf two-byte-as-number {
6519                              type uint32 {6609                              type uint32 {
6520                                range "1..65535";6610                                range "1..65535";
6521                              }6611                              }
6522                              description6612                              description
6523                                "Two Byte AS Number";6613                                "Two Byte AS Number";
6524                            }6614                            }
6525                            leaf assigned-number {6615                            leaf assigned-number {
6526                              type uint32 {6616                              type uint32 {
6527                                range "0..4294967295" {6617                                range "0..4294967295" {
6528                                  description6618                                  description
6529                                    "AS:nn (hex or decimal format)";6619                                    "AS:nn (hex or decimal format)";
6530                                }6620                                }
6531                              }6621                              }
6532                              description6622                              description
6533                                "AS:nn (hex or decimal format)";6623                                "AS:nn (hex or decimal format)";
6534                            }6624                            }
6535                          }6625                          }
6536                        }6626                        }
6537                        container four-byte-as-rts {6627                        container four-byte-as-rts {
6538                          description6628                          description
6539                            "Four Byte AS number Route Target";6629                            "Four Byte AS number Route Target";
6540                          list four-byte-as-rt {6630                          list four-byte-as-rt {
6541                            key "four-byte-as-number assigned-number";6631                            key "four-byte-as-number assigned-number";
6542                            description6632                            description
6543                              "Four Byte AS number Route Target";6633                              "Four Byte AS number Route Target";
6544                            leaf four-byte-as-number {6634                            leaf four-byte-as-number {
6545                              type uint32 {6635                              type uint32 {
6546                                range "65536..4294967295";6636                                range "65536..4294967295";
6547                              }6637                              }
6548                              description6638                              description
6549                                "Four Byte AS number";6639                                "Four Byte AS number";
6550                            }6640                            }
6551                            leaf assigned-number {6641                            leaf assigned-number {
6552                              type uint32 {6642                              type uint32 {
6553                                range "0..65535" {6643                                range "0..65535" {
6554                                  description6644                                  description
6555                                    "AS:nn (hex or decimal format)";6645                                    "AS:nn (hex or decimal format)";
6556                                }6646                                }
6557                              }6647                              }
6558                              description6648                              description
6559                                "AS:nn (hex or decimal format)";6649                                "AS:nn (hex or decimal format)";
6560                            }6650                            }
6561                          }6651                          }
6562                        }6652                        }
6563                        container ipv4-address-rts {6653                        container ipv4-address-rts {
6564                          description6654                          description
6565                            "IP address Route Target";6655                            "IP address Route Target";
6566                          list ipv4-address-rt {6656                          list ipv4-address-rt {
6567                            key "ipv4-address assigned-number";6657                            key "ipv4-address assigned-number";
6568                            description6658                            description
6569                              "IP address";6659                              "IP address";
6570                            leaf ipv4-address {6660                            leaf ipv4-address {
6571                              type inet:ipv4-address-no-zone;6661                              type inet:ipv4-address-no-zone;
6572                              description6662                              description
6573                                "IP address";6663                                "IP address";
6574                            }6664                            }
6575                            leaf assigned-number {6665                            leaf assigned-number {
6576                              type uint32 {6666                              type uint32 {
6577                                range "0..65535" {6667                                range "0..65535" {
6578                                  description6668                                  description
6579                                    "IP-address:nn (hex or decimal format)";6669                                    "IP-address:nn (hex or decimal format)";
6580                                }6670                                }
6581                              }6671                              }
6582                              description6672                              description
6583                                "IP-address:nn (hex or decimal format)";6673                                "IP-address:nn (hex or decimal format)";
6584                            }6674                            }
6585                          }6675                          }
6586                        }6676                        }
6587                      }6677                      }
6588                      container control-word {6678                      container control-word {
6589                        presence "Indicates a control-word node is configured.";6679                        presence "Indicates a control-word node is configured.";
6590                        description6680                        description
6591                          "Enable control-word for BGP-Autodiscovered PWs for this VFI";6681                          "Enable control-word for BGP-Autodiscovered PWs for this VFI";
6592                      }6682                      }
6593                      container signaling-protocol {6683                      container signaling-protocol {
6594                        description6684                        description
6595                          "Enable signaling protocol for this VFI";6685                          "Enable signaling protocol for this VFI";
6596                        container bgp {6686                        container bgp {
6597                          presence "Indicates a bgp node is configured.";6687                          presence "Indicates a bgp node is configured.";
6598                          description6688                          description
6599                            "Enable BGP signaling protocol for this VFI";6689                            "Enable BGP signaling protocol for this VFI";
6600                          leaf ve-id {6690                          leaf ve-id {
6601                            type uint32 {6691                            type uint32 {
6602                              range "1..16384" {6692                              range "1..16384" {
6603                                description6693                                description
6604                                  "Value of the local VE ID";6694                                  "Value of the local VE ID";
6605                              }6695                              }
6606                            }6696                            }
6607                            description6697                            description
6608                              "Local Virtual Edge Identifier (VE ID)";6698                              "Local Virtual Edge Identifier (VE ID)";
6609                          }6699                          }
6610                          leaf ve-range {6700                          leaf ve-range {
6611                            if-feature "l2vpn_is_cli_supported";6701                            if-feature "l2vpn_is_cli_supported";
6612                            type uint32 {6702                            type uint32 {
6613                              range "11..100" {6703                              range "11..100" {
6614                                description6704                                description
6615                                  "Value of the VE Range";6705                                  "Value of the VE Range";
6616                              }6706                              }
6617                            }6707                            }
6618                            description6708                            description
6619                              "Local Virtual Edge Block Configurable Range";6709                              "Local Virtual Edge Block Configurable Range";
6620                          }6710                          }
6621                          container load-balancing {6711                          container load-balancing {
6622                            description6712                            description
6623                              "Load Balancing";6713                              "Load Balancing";
6624                            container flow-label {6714                            container flow-label {
6625                              description6715                              description
6626                                "Flow label based load balancing setting";6716                                "Flow label based load balancing setting";
6627                              container transmit {6717                              container transmit {
6628                                must "not(../receive or ../both)";6718                                must "not(../receive or ../both)";
6629                                presence "Indicates a transmit node is configured.";6719                                presence "Indicates a transmit node is configured.";
6630                                description6720                                description
6631                                  "Insert Flow label when transmit ";6721                                  "Insert Flow label when transmit ";
6632                              }6722                              }
6633                              container receive {6723                              container receive {
6634                                must "not(../transmit or ../both)";6724                                must "not(../transmit or ../both)";
6635                                presence "Indicates a receive node is configured.";6725                                presence "Indicates a receive node is configured.";
6636                                description6726                                description
6637                                  "Discard Flow label when receive";6727                                  "Discard Flow label when receive";
6638                              }6728                              }
6639                              container both {6729                              container both {
6640                                must "not(../transmit or ../receive)";6730                                must "not(../transmit or ../receive)";
6641                                presence "Indicates a both node is configured.";6731                                presence "Indicates a both node is configured.";
6642                                description6732                                description
6643                                  "Insert/Discard Flow label when transmit/recceive";6733                                  "Insert/Discard Flow label when transmit/recceive";
6644                              }6734                              }
6645                              container static {6735                              container static {
6646                                must "../transmit or ../receive or ../both";6736                                must "../transmit or ../receive or ../both";
6647                                presence "Indicates a static node is configured.";6737                                presence "Indicates a static node is configured.";
6648                                description6738                                description
6649                                  "Set Flow label parameters statically";6739                                  "Set Flow label parameters statically";
6650                              }6740                              }
6651                            }6741                            }
6652                          }6742                          }
6653                        }6743                        }
6654                        container ldp {6744                        container ldp {
6655                          presence "Indicates a ldp node is configured.";6745                          presence "Indicates a ldp node is configured.";
6656                          description6746                          description
6657                            "Enable LDP signaling protocol for this VFI";6747                            "Enable LDP signaling protocol for this VFI";
6658                          container vpls-id {6748                          container vpls-id {
6659                            if-feature "l2vpn_is_cli_supported";6749                            if-feature "l2vpn_is_cli_supported";
6660                            description6750                            description
6661                              "VPLS ID";6751                              "VPLS ID";
6662                            leaf two-byte-as-number {6752                            leaf two-byte-as-number {
6663                              type uint32 {6753                              type uint32 {
6664                                range "1..65535" {6754                                range "1..65535" {
6665                                  description6755                                  description
6666                                    "Two Byte AS number";6756                                    "Two Byte AS number";
6667                                }6757                                }
6668                              }6758                              }
n6669                              must "not(../ipv4-address) and ../two-byte-as-assigned-number";n6759                              must "not(../ipv4-address)";
6670                              description6760                              description
6671                                "Two Byte AS number";6761                                "Two Byte AS number";
6672                            }6762                            }
6673                            leaf two-byte-as-assigned-number {6763                            leaf two-byte-as-assigned-number {
6674                              type uint32 {6764                              type uint32 {
6675                                range "0..4294967295" {6765                                range "0..4294967295" {
6676                                  description6766                                  description
6677                                    "AS:nn (hex or decimal format)";6767                                    "AS:nn (hex or decimal format)";
6678                                }6768                                }
6679                              }6769                              }
6680                              must "../two-byte-as-number";6770                              must "../two-byte-as-number";
6681                              description6771                              description
6682                                "AS:nn (hex or decimal format)";6772                                "AS:nn (hex or decimal format)";
6683                            }6773                            }
6684                            leaf ipv4-address {6774                            leaf ipv4-address {
6685                              type inet:ipv4-address-no-zone;6775                              type inet:ipv4-address-no-zone;
n6686                              must "not(../two-byte-as-number) and ../ipv4-address-assigned-number";n6776                              must "not(../two-byte-as-number)";
6687                              description6777                              description
6688                                "IP address";6778                                "IP address";
6689                            }6779                            }
6690                            leaf ipv4-address-assigned-number {6780                            leaf ipv4-address-assigned-number {
6691                              type uint32 {6781                              type uint32 {
6692                                range "0..32767" {6782                                range "0..32767" {
6693                                  description6783                                  description
6694                                    "IP-address:nn (hex or decimal format)";6784                                    "IP-address:nn (hex or decimal format)";
6695                                }6785                                }
6696                              }6786                              }
6697                              must "../ipv4-address";6787                              must "../ipv4-address";
6698                              description6788                              description
6699                                "IP-address:nn (hex or decimal format)";6789                                "IP-address:nn (hex or decimal format)";
6700                            }6790                            }
6701                            container load-balancing {6791                            container load-balancing {
6702                              description6792                              description
6703                                "Load Balancing";6793                                "Load Balancing";
6704                              container flow-label {6794                              container flow-label {
6705                                description6795                                description
6706                                  "Flow label based load balancing setting";6796                                  "Flow label based load balancing setting";
6707                                container transmit {6797                                container transmit {
6708                                  must "not(../receive or ../both)";6798                                  must "not(../receive or ../both)";
6709                                  presence "Indicates a transmit node is configured.";6799                                  presence "Indicates a transmit node is configured.";
6710                                  description6800                                  description
6711                                    "Insert Flow label when transmit ";6801                                    "Insert Flow label when transmit ";
6712                                }6802                                }
6713                                container receive {6803                                container receive {
6714                                  must "not(../transmit or ../both)";6804                                  must "not(../transmit or ../both)";
6715                                  presence "Indicates a receive node is configured.";6805                                  presence "Indicates a receive node is configured.";
6716                                  description6806                                  description
6717                                    "Discard Flow label when receive";6807                                    "Discard Flow label when receive";
6718                                }6808                                }
6719                                container both {6809                                container both {
6720                                  must "not(../transmit or ../receive)";6810                                  must "not(../transmit or ../receive)";
6721                                  presence "Indicates a both node is configured.";6811                                  presence "Indicates a both node is configured.";
6722                                  description6812                                  description
6723                                    "Insert/Discard Flow label when transmit/recceive";6813                                    "Insert/Discard Flow label when transmit/recceive";
6724                                }6814                                }
6725                                container static {6815                                container static {
6726                                  must "../transmit or ../receive or ../both";6816                                  must "../transmit or ../receive or ../both";
6727                                  presence "Indicates a static node is configured.";6817                                  presence "Indicates a static node is configured.";
6728                                  description6818                                  description
6729                                    "Set Flow label parameters statically";6819                                    "Set Flow label parameters statically";
6730                                }6820                                }
6731                              }6821                              }
6732                            }6822                            }
6733                          }6823                          }
6734                        }6824                        }
6735                      }6825                      }
6736                      leaf table-policy {6826                      leaf table-policy {
6737                        type xr:Route-policy-name;6827                        type xr:Route-policy-name;
6738                        description6828                        description
6739                          "Configure policy for installation of forwarding data to L2FIB";6829                          "Configure policy for installation of forwarding data to L2FIB";
6740                      }6830                      }
6741                      container route-policy {6831                      container route-policy {
6742                        description6832                        description
6743                          "Apply route policy";6833                          "Apply route policy";
6744                        leaf export {6834                        leaf export {
6745                          type xr:Route-policy-name;6835                          type xr:Route-policy-name;
6746                          description6836                          description
6747                            "Export route policy";6837                            "Export route policy";
6748                        }6838                        }
6749                      }6839                      }
6750                    }6840                    }
6751                  }6841                  }
6752                  container multicast {6842                  container multicast {
6753                    if-feature "l2vpn_pw_p2mp_supported";6843                    if-feature "l2vpn_pw_p2mp_supported";
6754                    description6844                    description
6755                      "Point to multi-point pseudowire";6845                      "Point to multi-point pseudowire";
6756                    container p2mp {6846                    container p2mp {
6757                      presence "Indicates a p2mp node is configured.";6847                      presence "Indicates a p2mp node is configured.";
6758                      description6848                      description
6759                        "Enable point to multi-point pseudowire in this VFI";6849                        "Enable point to multi-point pseudowire in this VFI";
6760                      container transport {6850                      container transport {
6761                        description6851                        description
6762                          "Transport type selection";6852                          "Transport type selection";
6763                        container rsvp-te {6853                        container rsvp-te {
6764                          presence "Indicates a rsvp-te node is configured.";6854                          presence "Indicates a rsvp-te node is configured.";
6765                          description6855                          description
6766                            "Use RSVP-TE as transport";6856                            "Use RSVP-TE as transport";
6767                          container attribute-set {6857                          container attribute-set {
6768                            description6858                            description
6769                              "TE attribute set parameters";6859                              "TE attribute set parameters";
6770                            leaf p2mp-te {6860                            leaf p2mp-te {
6771                              type xr:Cisco-ios-xr-string {6861                              type xr:Cisco-ios-xr-string {
6772                                length "1..64" {6862                                length "1..64" {
6773                                  description6863                                  description
6774                                    "Specify name";6864                                    "Specify name";
6775                                }6865                                }
6776                              }6866                              }
6777                              description6867                              description
6778                                "TE tunnel attribute set name";6868                                "TE tunnel attribute set name";
6779                            }6869                            }
6780                          }6870                          }
6781                        }6871                        }
6782                      }6872                      }
6783                      container signaling-protocol {6873                      container signaling-protocol {
6784                        description6874                        description
6785                          "Signaling protocol selection";6875                          "Signaling protocol selection";
6786                        container bgp {6876                        container bgp {
6787                          presence "Indicates a bgp node is configured.";6877                          presence "Indicates a bgp node is configured.";
6788                          description6878                          description
6789                            "Use BGP for signaling";6879                            "Use BGP for signaling";
6790                        }6880                        }
6791                      }6881                      }
6792                    }6882                    }
6793                  }6883                  }
6794                  container neighbors {6884                  container neighbors {
6795                    description6885                    description
6796                      "Specify the peer to cross connect";6886                      "Specify the peer to cross connect";
6797                    list neighbor {6887                    list neighbor {
6798                      key "address pw-id";6888                      key "address pw-id";
6799                      description6889                      description
6800                        "Specify the peer to cross connect";6890                        "Specify the peer to cross connect";
6801                      leaf address {6891                      leaf address {
6802                        type inet:ipv4-address-no-zone;6892                        type inet:ipv4-address-no-zone;
6803                        description6893                        description
6804                          "IPv4 address of the peer";6894                          "IPv4 address of the peer";
6805                      }6895                      }
6806                      leaf pw-id {6896                      leaf pw-id {
6807                        type uint32 {6897                        type uint32 {
6808                          range "1..4294967295" {6898                          range "1..4294967295" {
6809                            description6899                            description
6810                              "Pseudowire ID";6900                              "Pseudowire ID";
6811                          }6901                          }
6812                        }6902                        }
6813                        description6903                        description
6814                          "Specify the pseudowire id";6904                          "Specify the pseudowire id";
6815                      }6905                      }
6816                      container static-mac-addresses {6906                      container static-mac-addresses {
6817                        description6907                        description
6818                          "Static MAC address";6908                          "Static MAC address";
6819                        list static-mac-address {6909                        list static-mac-address {
6820                          key "mac-address";6910                          key "mac-address";
6821                          description6911                          description
6822                            "Static MAC address";6912                            "Static MAC address";
6823                          leaf mac-address {6913                          leaf mac-address {
6824                            type yang:mac-address;6914                            type yang:mac-address;
6825                            description6915                            description
6826                              "Static MAC address";6916                              "Static MAC address";
6827                          }6917                          }
6828                        }6918                        }
6829                      }6919                      }
6830                      container mpls {6920                      container mpls {
6831                        description6921                        description
6832                          "MPLS L2VPN PW command";6922                          "MPLS L2VPN PW command";
6833                        container static {6923                        container static {
6834                          description6924                          description
6835                            "MPLS L2VPN static settings";6925                            "MPLS L2VPN static settings";
6836                          container label {6926                          container label {
6837                            description6927                            description
6838                              "MPLS L2VPN static labels";6928                              "MPLS L2VPN static labels";
6839                            leaf local {6929                            leaf local {
6840                              type uint32 {6930                              type uint32 {
6841                                range "16..1048575" {6931                                range "16..1048575" {
6842                                  description6932                                  description
6843                                    "Local pseudowire label";6933                                    "Local pseudowire label";
6844                                }6934                                }
6845                              }6935                              }
6846                              must "../remote";6936                              must "../remote";
6847                              description6937                              description
6848                                "Local pseudowire label";6938                                "Local pseudowire label";
6849                            }6939                            }
6850                            leaf remote {6940                            leaf remote {
6851                              type uint32 {6941                              type uint32 {
6852                                range "16..1048575" {6942                                range "16..1048575" {
6853                                  description6943                                  description
6854                                    "Remote pseudowire label";6944                                    "Remote pseudowire label";
6855                                }6945                                }
6856                              }6946                              }
6857                              must "../local";6947                              must "../local";
6858                              description6948                              description
6859                                "Remote pseudowire label";6949                                "Remote pseudowire label";
6860                            }6950                            }
6861                          }6951                          }
6862                        }6952                        }
6863                      }6953                      }
6864                      leaf pw-class {6954                      leaf pw-class {
6865                        type xr:Cisco-ios-xr-string {6955                        type xr:Cisco-ios-xr-string {
6866                          length "1..32" {6956                          length "1..32" {
6867                            description6957                            description
6868                              "Pseudowire-class name";6958                              "Pseudowire-class name";
6869                          }6959                          }
6870                        }6960                        }
6871                        description6961                        description
6872                          "PW class template name to use for this pseudowire";6962                          "PW class template name to use for this pseudowire";
6873                      }6963                      }
6874                      container dhcp {6964                      container dhcp {
6875                        presence "Indicates a dhcp node is configured.";6965                        presence "Indicates a dhcp node is configured.";
6876                        description6966                        description
6877                          "DHCP protocol";6967                          "DHCP protocol";
6878                        container ipv4 {6968                        container ipv4 {
6879                          description6969                          description
6880                            "IP Version 4";6970                            "IP Version 4";
6881                          container snoop {6971                          container snoop {
6882                            presence "Indicates a snoop node is configured.";6972                            presence "Indicates a snoop node is configured.";
6883                            description6973                            description
6884                              "Set the snooping profile";6974                              "Set the snooping profile";
6885                            leaf profile {6975                            leaf profile {
6886                              type xr:Cisco-ios-xr-string {6976                              type xr:Cisco-ios-xr-string {
6887                                length "1..32" {6977                                length "1..32" {
6888                                  description6978                                  description
6889                                    "DHCPv4 Snooping profile name";6979                                    "DHCPv4 Snooping profile name";
6890                                }6980                                }
6891                              }6981                              }
6892                              description6982                              description
6893                                "Attach a DHCP profile";6983                                "Attach a DHCP profile";
6894                            }6984                            }
6895                          }6985                          }
6896                          container none {6986                          container none {
6897                            presence "Indicates a none node is configured.";6987                            presence "Indicates a none node is configured.";
6898                            description6988                            description
6899                              "Disable DHCP snooping";6989                              "Disable DHCP snooping";
6900                          }6990                          }
6901                        }6991                        }
6902                      }6992                      }
6903                      container igmp {6993                      container igmp {
6904                        description6994                        description
6905                          "IGMP protocol";6995                          "IGMP protocol";
6906                        container snooping {6996                        container snooping {
6907                          description6997                          description
6908                            "Set the snooping profile";6998                            "Set the snooping profile";
6909                          leaf profile {6999                          leaf profile {
6910                            type xr:Cisco-ios-xr-string {7000                            type xr:Cisco-ios-xr-string {
6911                              length "1..32" {7001                              length "1..32" {
6912                                description7002                                description
6913                                  "IGMP Snooping profile name";7003                                  "IGMP Snooping profile name";
6914                              }7004                              }
6915                            }7005                            }
6916                            description7006                            description
6917                              "Attach an IGMP profile";7007                              "Attach an IGMP profile";
6918                          }7008                          }
6919                        }7009                        }
6920                      }7010                      }
6921                      container mld {7011                      container mld {
6922                        description7012                        description
6923                          "MLD protocol";7013                          "MLD protocol";
6924                        container snooping {7014                        container snooping {
6925                          description7015                          description
6926                            "Set the snooping profile";7016                            "Set the snooping profile";
6927                          leaf profile {7017                          leaf profile {
6928                            type xr:Cisco-ios-xr-string {7018                            type xr:Cisco-ios-xr-string {
6929                              length "1..32" {7019                              length "1..32" {
6930                                description7020                                description
6931                                  "MLD Snooping profile name";7021                                  "MLD Snooping profile name";
6932                              }7022                              }
6933                            }7023                            }
6934                            description7024                            description
6935                              "Attach a MLD profile";7025                              "Attach a MLD profile";
6936                          }7026                          }
6937                        }7027                        }
6938                      }7028                      }
6939                    }7029                    }
6940                  }7030                  }
6941                }7031                }
6942              }7032              }
6943              container access-vfis {7033              container access-vfis {
6944                description7034                description
6945                  "Specify the access virtual forwarding interface name";7035                  "Specify the access virtual forwarding interface name";
6946                list access-vfi {7036                list access-vfi {
6947                  key "access-vfi-name";7037                  key "access-vfi-name";
6948                  description7038                  description
6949                    "Specify the access virtual forwarding interface name";7039                    "Specify the access virtual forwarding interface name";
6950                  leaf access-vfi-name {7040                  leaf access-vfi-name {
6951                    type xr:Cisco-ios-xr-string {7041                    type xr:Cisco-ios-xr-string {
6952                      length "1..32" {7042                      length "1..32" {
6953                        description7043                        description
6954                          "Name of the Access Virtual Forwarding Interface";7044                          "Name of the Access Virtual Forwarding Interface";
6955                      }7045                      }
6956                    }7046                    }
6957                    description7047                    description
6958                      "Specify the access virtual forwarding interface name";7048                      "Specify the access virtual forwarding interface name";
6959                  }7049                  }
6960                  container shutdown {7050                  container shutdown {
6961                    presence "Indicates a shutdown node is configured.";7051                    presence "Indicates a shutdown node is configured.";
6962                    description7052                    description
6963                      "shutdown the Access Virtual Forwarding Interface";7053                      "shutdown the Access Virtual Forwarding Interface";
6964                  }7054                  }
6965                  container neighbors {7055                  container neighbors {
6966                    description7056                    description
6967                      "Specify the peer to cross connect";7057                      "Specify the peer to cross connect";
6968                    list neighbor {7058                    list neighbor {
6969                      key "address pw-id";7059                      key "address pw-id";
6970                      description7060                      description
6971                        "Specify the peer to cross connect";7061                        "Specify the peer to cross connect";
6972                      leaf address {7062                      leaf address {
6973                        type inet:ipv4-address-no-zone;7063                        type inet:ipv4-address-no-zone;
6974                        description7064                        description
6975                          "IPv4 address of the peer";7065                          "IPv4 address of the peer";
6976                      }7066                      }
6977                      leaf pw-id {7067                      leaf pw-id {
6978                        type uint32 {7068                        type uint32 {
6979                          range "1..4294967295" {7069                          range "1..4294967295" {
6980                            description7070                            description
6981                              "Pseudowire ID";7071                              "Pseudowire ID";
6982                          }7072                          }
6983                        }7073                        }
6984                        description7074                        description
6985                          "Specify the pseudowire id";7075                          "Specify the pseudowire id";
6986                      }7076                      }
6987                      container static-mac-addresses {7077                      container static-mac-addresses {
6988                        description7078                        description
6989                          "Static MAC address";7079                          "Static MAC address";
6990                        list static-mac-address {7080                        list static-mac-address {
6991                          key "mac-address";7081                          key "mac-address";
6992                          description7082                          description
6993                            "Static MAC address";7083                            "Static MAC address";
6994                          leaf mac-address {7084                          leaf mac-address {
6995                            type yang:mac-address;7085                            type yang:mac-address;
6996                            description7086                            description
6997                              "Static MAC address";7087                              "Static MAC address";
6998                          }7088                          }
6999                        }7089                        }
7000                      }7090                      }
7001                      leaf pw-class {7091                      leaf pw-class {
7002                        type xr:Cisco-ios-xr-string {7092                        type xr:Cisco-ios-xr-string {
7003                          length "1..32" {7093                          length "1..32" {
7004                            description7094                            description
7005                              "Pseudowire-class name";7095                              "Pseudowire-class name";
7006                          }7096                          }
7007                        }7097                        }
7008                        description7098                        description
7009                          "PW class template name to use for this pseudowire";7099                          "PW class template name to use for this pseudowire";
7010                      }7100                      }
7011                    }7101                    }
7012                  }7102                  }
7013                }7103                }
7014              }7104              }
7015              container mac {7105              container mac {
7016                description7106                description
7017                  "MAC configuration commands";7107                  "MAC configuration commands";
7018                container aging {7108                container aging {
7019                  if-feature "l2vpn_is_cli_supported";7109                  if-feature "l2vpn_is_cli_supported";
7020                  description7110                  description
7021                    "MAC-Aging configuration commands";7111                    "MAC-Aging configuration commands";
7022                  leaf time {7112                  leaf time {
7023                    type uint32 {7113                    type uint32 {
7024                      range "300..30000" {7114                      range "300..30000" {
7025                        description7115                        description
7026                          "MAC address aging time in seconds";7116                          "MAC address aging time in seconds";
7027                      }7117                      }
7028                    }7118                    }
7029                    description7119                    description
7030                      "Mac aging";7120                      "Mac aging";
7031                  }7121                  }
7032                  container type {7122                  container type {
7033                    description7123                    description
7034                      "MAC address aging type";7124                      "MAC address aging type";
7035                    container absolute {7125                    container absolute {
7036                      presence "Indicates a absolute node is configured.";7126                      presence "Indicates a absolute node is configured.";
7037                      description7127                      description
7038                        "Absolute aging type";7128                        "Absolute aging type";
7039                    }7129                    }
7040                  }7130                  }
7041                }7131                }
7042                container static-addresses {7132                container static-addresses {
7043                  description7133                  description
7044                    "Static MAC address for filtering";7134                    "Static MAC address for filtering";
7045                  list static-address {7135                  list static-address {
7046                    must "drop";7136                    must "drop";
7047                    key "mac-address";7137                    key "mac-address";
7048                    description7138                    description
7049                      "Static MAC address for filtering";7139                      "Static MAC address for filtering";
7050                    leaf mac-address {7140                    leaf mac-address {
7051                      type yang:mac-address;7141                      type yang:mac-address;
7052                      description7142                      description
7053                        "Static MAC address for filtering";7143                        "Static MAC address for filtering";
7054                    }7144                    }
7055                    container drop {7145                    container drop {
7056                      presence "Indicates a drop node is configured.";7146                      presence "Indicates a drop node is configured.";
7057                      description7147                      description
7058                        "Drop matching packets";7148                        "Drop matching packets";
7059                    }7149                    }
7060                  }7150                  }
7061                }7151                }
7062                container learning {7152                container learning {
7063                  description7153                  description
7064                    "MAC learning";7154                    "MAC learning";
7065                  container disable {7155                  container disable {
7066                    presence "Indicates a disable node is configured.";7156                    presence "Indicates a disable node is configured.";
7067                    description7157                    description
7068                      "Disable MAC learning";7158                      "Disable MAC learning";
7069                  }7159                  }
7070                }7160                }
7071                container withdraw {7161                container withdraw {
7072                  description7162                  description
7073                    "MAC withdraw";7163                    "MAC withdraw";
7074                  container disable {7164                  container disable {
7075                    presence "Indicates a disable node is configured.";7165                    presence "Indicates a disable node is configured.";
7076                    description7166                    description
7077                      "Disable MAC withdraw";7167                      "Disable MAC withdraw";
7078                  }7168                  }
7079                  container access-pw {7169                  container access-pw {
7080                    description7170                    description
7081                      "MAC withdraw sent to Access PWs ";7171                      "MAC withdraw sent to Access PWs ";
7082                    container disable {7172                    container disable {
7083                      presence "Indicates a disable node is configured.";7173                      presence "Indicates a disable node is configured.";
7084                      description7174                      description
7085                        "Disable MAC withdraw on Access PW";7175                        "Disable MAC withdraw on Access PW";
7086                    }7176                    }
7087                  }7177                  }
7088                  container relay {7178                  container relay {
7089                    presence "Indicates a relay node is configured.";7179                    presence "Indicates a relay node is configured.";
7090                    description7180                    description
7091                      "MAC withdraw relayed to Access PWs ";7181                      "MAC withdraw relayed to Access PWs ";
7092                  }7182                  }
7093                  container state-down {7183                  container state-down {
7094                    must "not(../optimize)";7184                    must "not(../optimize)";
7095                    presence "Indicates a state-down node is configured.";7185                    presence "Indicates a state-down node is configured.";
7096                    description7186                    description
7097                      "MAC withdraw sent on bridge port down";7187                      "MAC withdraw sent on bridge port down";
7098                  }7188                  }
7099                  container optimize {7189                  container optimize {
7100                    must "not(../state-down)";7190                    must "not(../state-down)";
7101                    presence "Indicates a optimize node is configured.";7191                    presence "Indicates a optimize node is configured.";
7102                    description7192                    description
7103                      "Optimized LDP MAC withdraw (when port goes down)";7193                      "Optimized LDP MAC withdraw (when port goes down)";
7104                  }7194                  }
7105                }7195                }
7106                container limit {7196                container limit {
7107                  description7197                  description
7108                    "MAC-Limit configuration commands";7198                    "MAC-Limit configuration commands";
7109                  leaf maximum {7199                  leaf maximum {
7110                    type uint32 {7200                    type uint32 {
7111                      range "0..4294967295" {7201                      range "0..4294967295" {
7112                        description7202                        description
7113                          "Number of MAC addresses after which MAC limit action is taken";7203                          "Number of MAC addresses after which MAC limit action is taken";
7114                      }7204                      }
7115                    }7205                    }
7116                    description7206                    description
7117                      "Number of MAC addresses after which MAC limit action is taken";7207                      "Number of MAC addresses after which MAC limit action is taken";
7118                  }7208                  }
7119                  container action {7209                  container action {
7120                    description7210                    description
7121                      "MAC address limit enforcement action";7211                      "MAC address limit enforcement action";
7122                    container flood {7212                    container flood {
7123                      must "not(../no-flood or ../shutdown)";7213                      must "not(../no-flood or ../shutdown)";
7124                      presence "Indicates a flood node is configured.";7214                      presence "Indicates a flood node is configured.";
7125                      description7215                      description
7126                        "Stop learning but continue flooding";7216                        "Stop learning but continue flooding";
7127                    }7217                    }
7128                    container no-flood {7218                    container no-flood {
7129                      must "not(../flood or ../shutdown)";7219                      must "not(../flood or ../shutdown)";
7130                      presence "Indicates a no-flood node is configured.";7220                      presence "Indicates a no-flood node is configured.";
7131                      description7221                      description
7132                        "Stop learning and stop flooding";7222                        "Stop learning and stop flooding";
7133                    }7223                    }
7134                    container shutdown {7224                    container shutdown {
7135                      must "not(../flood or ../no-flood)";7225                      must "not(../flood or ../no-flood)";
7136                      presence "Indicates a shutdown node is configured.";7226                      presence "Indicates a shutdown node is configured.";
7137                      description7227                      description
7138                        "Stop forwarding";7228                        "Stop forwarding";
7139                    }7229                    }
7140                  }7230                  }
7141                  container notification {7231                  container notification {
7142                    description7232                    description
7143                      "MAC address limit notification action";7233                      "MAC address limit notification action";
7144                    container trap {7234                    container trap {
7145                      must "not(../both or ../none)";7235                      must "not(../both or ../none)";
7146                      presence "Indicates a trap node is configured.";7236                      presence "Indicates a trap node is configured.";
7147                      description7237                      description
7148                        "Generate SNMP trap";7238                        "Generate SNMP trap";
7149                    }7239                    }
7150                    container both {7240                    container both {
7151                      must "not(../trap or ../none)";7241                      must "not(../trap or ../none)";
7152                      presence "Indicates a both node is configured.";7242                      presence "Indicates a both node is configured.";
7153                      description7243                      description
7154                        "Generate syslog message and SNMP trap";7244                        "Generate syslog message and SNMP trap";
7155                    }7245                    }
7156                    container none {7246                    container none {
7157                      must "not(../trap or ../both)";7247                      must "not(../trap or ../both)";
7158                      presence "Indicates a none node is configured.";7248                      presence "Indicates a none node is configured.";
7159                      description7249                      description
7160                        "No notification";7250                        "No notification";
7161                    }7251                    }
7162                  }7252                  }
7163                }7253                }
7164                container port-down {7254                container port-down {
7165                  description7255                  description
7166                    "Configure action when port goes down";7256                    "Configure action when port goes down";
7167                  container flush {7257                  container flush {
7168                    description7258                    description
7169                      "Configure MAC flush when port goes down";7259                      "Configure MAC flush when port goes down";
7170                    container disable {7260                    container disable {
7171                      presence "Indicates a disable node is configured.";7261                      presence "Indicates a disable node is configured.";
7172                      description7262                      description
7173                        "Disable MAC flush when port goes down";7263                        "Disable MAC flush when port goes down";
7174                    }7264                    }
7175                  }7265                  }
7176                }7266                }
7177                container secure {7267                container secure {
7178                  presence "Indicates a secure node is configured.";7268                  presence "Indicates a secure node is configured.";
7179                  description7269                  description
7180                    "MAC Secure configuration commands";7270                    "MAC Secure configuration commands";
7181                  container logging {7271                  container logging {
7182                    presence "Indicates a logging node is configured.";7272                    presence "Indicates a logging node is configured.";
7183                    description7273                    description
7184                      "Enable Logging";7274                      "Enable Logging";
7185                  }7275                  }
7186                  container threshold {7276                  container threshold {
7187                    presence "Indicates a threshold node is configured.";7277                    presence "Indicates a threshold node is configured.";
7188                    description7278                    description
7189                      "Threshold based mac secure";7279                      "Threshold based mac secure";
7190                  }7280                  }
7191                  container action {7281                  container action {
7192                    description7282                    description
7193                      "MAC secure enforcement action";7283                      "MAC secure enforcement action";
7194                    container none {7284                    container none {
7195                      must "not(../shutdown)";7285                      must "not(../shutdown)";
7196                      presence "Indicates a none node is configured.";7286                      presence "Indicates a none node is configured.";
7197                      description7287                      description
7198                        "Forward the violating packet and allow the MAC to be relearned";7288                        "Forward the violating packet and allow the MAC to be relearned";
7199                    }7289                    }
7200                    container shutdown {7290                    container shutdown {
7201                      must "not(../none)";7291                      must "not(../none)";
7202                      presence "Indicates a shutdown node is configured.";7292                      presence "Indicates a shutdown node is configured.";
7203                      description7293                      description
7204                        "Shutdown the violating bridge port";7294                        "Shutdown the violating bridge port";
7205                    }7295                    }
7206                  }7296                  }
7207                  leaf shutdown-recovery-timeout {7297                  leaf shutdown-recovery-timeout {
7208                    type uint32 {7298                    type uint32 {
7209                      range "10..3600" {7299                      range "10..3600" {
7210                        description7300                        description
7211                          "Recovery timer in seconds";7301                          "Recovery timer in seconds";
7212                      }7302                      }
7213                    }7303                    }
7214                    description7304                    description
7215                      "Recovery-timer to automatically revert shutdown action";7305                      "Recovery-timer to automatically revert shutdown action";
7216                  }7306                  }
7217                }7307                }
7218              }7308              }
7219              container access-evis {7309              container access-evis {
7220                description7310                description
7221                  "Specify the virtual access EVI";7311                  "Specify the virtual access EVI";
7222                list access-evi {7312                list access-evi {
7223                  key "access-evi-id";7313                  key "access-evi-id";
7224                  description7314                  description
7225                    "Specify the virtual access EVI";7315                    "Specify the virtual access EVI";
7226                  leaf access-evi-id {7316                  leaf access-evi-id {
7227                    type uint32 {7317                    type uint32 {
7228                      range "1..65534" {7318                      range "1..65534" {
7229                        description7319                        description
7230                          "Access EVPN Instance VPN ID value";7320                          "Access EVPN Instance VPN ID value";
7231                      }7321                      }
7232                    }7322                    }
7233                    description7323                    description
7234                      "Specify the virtual access EVI";7324                      "Specify the virtual access EVI";
7235                  }7325                  }
7236                }7326                }
7237              }7327              }
7238              container neighbors {7328              container neighbors {
7239                description7329                description
7240                  "Specify the peer to cross connect";7330                  "Specify the peer to cross connect";
7241                list neighbor {7331                list neighbor {
7242                  key "address pw-id";7332                  key "address pw-id";
7243                  description7333                  description
7244                    "Specify the peer to cross connect";7334                    "Specify the peer to cross connect";
7245                  leaf address {7335                  leaf address {
7246                    type inet:ipv4-address-no-zone;7336                    type inet:ipv4-address-no-zone;
7247                    description7337                    description
7248                      "IPv4 address of the peer";7338                      "IPv4 address of the peer";
7249                  }7339                  }
7250                  leaf pw-id {7340                  leaf pw-id {
7251                    type uint32 {7341                    type uint32 {
7252                      range "1..4294967295" {7342                      range "1..4294967295" {
7253                        description7343                        description
7254                          "Pseudowire ID";7344                          "Pseudowire ID";
7255                      }7345                      }
7256                    }7346                    }
7257                    description7347                    description
7258                      "Specify the pseudowire id";7348                      "Specify the pseudowire id";
7259                  }7349                  }
7260                  container flooding {7350                  container flooding {
7261                    if-feature "l2vpn_is_cli_supported";7351                    if-feature "l2vpn_is_cli_supported";
7262                    presence "Indicates a flooding node is configured.";7352                    presence "Indicates a flooding node is configured.";
7263                    description7353                    description
7264                      "Traffic flooding";7354                      "Traffic flooding";
7265                    container disable {7355                    container disable {
7266                      presence "Indicates a disable node is configured.";7356                      presence "Indicates a disable node is configured.";
7267                      description7357                      description
7268                        "Disable flooding";7358                        "Disable flooding";
7269                    }7359                    }
nn7360                    container unknown-unicast {
7361                      presence "Indicates a unknown-unicast node is configured.";
7362                      description
7363                        "Traffic flooding unknown unicast";
7364                      container disable {
7365                        presence "Indicates a disable node is configured.";
7366                        description
7367                          "Disable Unknow Unicast flooding";
7368                      }
7369                    }
7270                  }7370                  }
7271                  container static-mac-addresses {7371                  container static-mac-addresses {
7272                    description7372                    description
7273                      "Static MAC address";7373                      "Static MAC address";
7274                    list static-mac-address {7374                    list static-mac-address {
7275                      key "mac-address";7375                      key "mac-address";
7276                      description7376                      description
7277                        "Static MAC address";7377                        "Static MAC address";
7278                      leaf mac-address {7378                      leaf mac-address {
7279                        type yang:mac-address;7379                        type yang:mac-address;
7280                        description7380                        description
7281                          "Static MAC address";7381                          "Static MAC address";
7282                      }7382                      }
7283                    }7383                    }
7284                  }7384                  }
7285                  container mpls {7385                  container mpls {
7286                    description7386                    description
7287                      "MPLS L2VPN PW command";7387                      "MPLS L2VPN PW command";
7288                    container static {7388                    container static {
7289                      description7389                      description
7290                        "MPLS L2VPN static settings";7390                        "MPLS L2VPN static settings";
7291                      container label {7391                      container label {
7292                        description7392                        description
7293                          "MPLS L2VPN static labels";7393                          "MPLS L2VPN static labels";
7294                        leaf local {7394                        leaf local {
7295                          type uint32 {7395                          type uint32 {
7296                            range "16..1048575" {7396                            range "16..1048575" {
7297                              description7397                              description
7298                                "Local pseudowire label";7398                                "Local pseudowire label";
7299                            }7399                            }
7300                          }7400                          }
7301                          must "../remote";7401                          must "../remote";
7302                          description7402                          description
7303                            "Local pseudowire label";7403                            "Local pseudowire label";
7304                        }7404                        }
7305                        leaf remote {7405                        leaf remote {
7306                          type uint32 {7406                          type uint32 {
7307                            range "16..1048575" {7407                            range "16..1048575" {
7308                              description7408                              description
7309                                "Remote pseudowire label";7409                                "Remote pseudowire label";
7310                            }7410                            }
7311                          }7411                          }
7312                          must "../local";7412                          must "../local";
7313                          description7413                          description
7314                            "Remote pseudowire label";7414                            "Remote pseudowire label";
7315                        }7415                        }
7316                      }7416                      }
7317                    }7417                    }
7318                  }7418                  }
7319                  leaf pw-class {7419                  leaf pw-class {
7320                    type xr:Cisco-ios-xr-string {7420                    type xr:Cisco-ios-xr-string {
7321                      length "1..32" {7421                      length "1..32" {
7322                        description7422                        description
7323                          "Pseudowire-class name";7423                          "Pseudowire-class name";
7324                      }7424                      }
7325                    }7425                    }
7326                    description7426                    description
7327                      "PW class template name to use for this pseudowire";7427                      "PW class template name to use for this pseudowire";
7328                  }7428                  }
7329                  container split-horizon {7429                  container split-horizon {
7330                    description7430                    description
7331                      "Configure split horizon group";7431                      "Configure split horizon group";
7332                    container group {7432                    container group {
7333                      presence "Indicates a group node is configured.";7433                      presence "Indicates a group node is configured.";
7334                      description7434                      description
7335                        "Configure split horizon group";7435                        "Configure split horizon group";
7336                    }7436                    }
7337                  }7437                  }
7338                  container storm-control {7438                  container storm-control {
7339                    description7439                    description
7340                      "Storm Control";7440                      "Storm Control";
7341                    container broadcast {7441                    container broadcast {
7342                      description7442                      description
7343                        "Broadcast Storm Control";7443                        "Broadcast Storm Control";
7344                      leaf pps {7444                      leaf pps {
7345                        type uint32 {7445                        type uint32 {
7346                          range "1..160000" {7446                          range "1..160000" {
7347                            description7447                            description
7348                              "storm control pps value";7448                              "storm control pps value";
7349                          }7449                          }
7350                        }7450                        }
7351                        description7451                        description
7352                          "Set the storm control pps";7452                          "Set the storm control pps";
7353                      }7453                      }
7354                      leaf kbps {7454                      leaf kbps {
7355                        type uint32 {7455                        type uint32 {
7356                          range "64..1280000" {7456                          range "64..1280000" {
7357                            description7457                            description
7358                              "storm control kbps value";7458                              "storm control kbps value";
7359                          }7459                          }
7360                        }7460                        }
7361                        description7461                        description
7362                          "Set the storm control kbps";7462                          "Set the storm control kbps";
7363                      }7463                      }
7364                    }7464                    }
7365                    container multicast {7465                    container multicast {
7366                      description7466                      description
7367                        "Multicast Storm Control";7467                        "Multicast Storm Control";
7368                      leaf pps {7468                      leaf pps {
7369                        type uint32 {7469                        type uint32 {
7370                          range "1..160000" {7470                          range "1..160000" {
7371                            description7471                            description
7372                              "storm control pps value";7472                              "storm control pps value";
7373                          }7473                          }
7374                        }7474                        }
7375                        description7475                        description
7376                          "Set the storm control pps";7476                          "Set the storm control pps";
7377                      }7477                      }
7378                      leaf kbps {7478                      leaf kbps {
7379                        type uint32 {7479                        type uint32 {
7380                          range "64..1280000" {7480                          range "64..1280000" {
7381                            description7481                            description
7382                              "storm control kbps value";7482                              "storm control kbps value";
7383                          }7483                          }
7384                        }7484                        }
7385                        description7485                        description
7386                          "Set the storm control kbps";7486                          "Set the storm control kbps";
7387                      }7487                      }
7388                    }7488                    }
7389                    container unknown-unicast {7489                    container unknown-unicast {
7390                      description7490                      description
7391                        "Unknown-unicast Storm Control";7491                        "Unknown-unicast Storm Control";
7392                      leaf pps {7492                      leaf pps {
7393                        type uint32 {7493                        type uint32 {
7394                          range "1..160000" {7494                          range "1..160000" {
7395                            description7495                            description
7396                              "storm control pps value";7496                              "storm control pps value";
7397                          }7497                          }
7398                        }7498                        }
7399                        description7499                        description
7400                          "Set the storm control pps";7500                          "Set the storm control pps";
7401                      }7501                      }
7402                      leaf kbps {7502                      leaf kbps {
7403                        type uint32 {7503                        type uint32 {
7404                          range "64..1280000" {7504                          range "64..1280000" {
7405                            description7505                            description
7406                              "storm control kbps value";7506                              "storm control kbps value";
7407                          }7507                          }
7408                        }7508                        }
7409                        description7509                        description
7410                          "Set the storm control kbps";7510                          "Set the storm control kbps";
7411                      }7511                      }
7412                    }7512                    }
7413                  }7513                  }
7414                  container mac {7514                  container mac {
7415                    description7515                    description
7416                      "MAC configuration commands";7516                      "MAC configuration commands";
7417                    container aging {7517                    container aging {
7418                      description7518                      description
7419                        "MAC-Aging configuration commands";7519                        "MAC-Aging configuration commands";
7420                      leaf time {7520                      leaf time {
7421                        type uint32 {7521                        type uint32 {
7422                          range "300..30000" {7522                          range "300..30000" {
7423                            description7523                            description
7424                              "MAC address aging time in seconds";7524                              "MAC address aging time in seconds";
7425                          }7525                          }
7426                        }7526                        }
7427                        description7527                        description
7428                          "Mac aging";7528                          "Mac aging";
7429                      }7529                      }
7430                      container type {7530                      container type {
7431                        description7531                        description
7432                          "MAC address aging type";7532                          "MAC address aging type";
7433                        container absolute {7533                        container absolute {
7434                          must "not(../inactivity)";7534                          must "not(../inactivity)";
7435                          presence "Indicates a absolute node is configured.";7535                          presence "Indicates a absolute node is configured.";
7436                          description7536                          description
7437                            "Absolute aging type";7537                            "Absolute aging type";
7438                        }7538                        }
7439                        container inactivity {7539                        container inactivity {
7440                          must "not(../absolute)";7540                          must "not(../absolute)";
7441                          presence "Indicates a inactivity node is configured.";7541                          presence "Indicates a inactivity node is configured.";
7442                          description7542                          description
7443                            "Inactivity aging type";7543                            "Inactivity aging type";
7444                        }7544                        }
7445                      }7545                      }
7446                    }7546                    }
7447                    container learning {7547                    container learning {
7448                      presence "Indicates a learning node is configured.";7548                      presence "Indicates a learning node is configured.";
7449                      description7549                      description
7450                        "MAC learning";7550                        "MAC learning";
7451                      container disable {7551                      container disable {
7452                        presence "Indicates a disable node is configured.";7552                        presence "Indicates a disable node is configured.";
7453                        description7553                        description
7454                          "Disable MAC learning";7554                          "Disable MAC learning";
7455                      }7555                      }
7456                    }7556                    }
7457                    container limit {7557                    container limit {
7458                      description7558                      description
7459                        "MAC-Limit configuration commands";7559                        "MAC-Limit configuration commands";
7460                      leaf maximum {7560                      leaf maximum {
7461                        type uint32 {7561                        type uint32 {
7462                          range "0..4294967295" {7562                          range "0..4294967295" {
7463                            description7563                            description
7464                              "Number of MAC addresses after which MAC limit action is taken";7564                              "Number of MAC addresses after which MAC limit action is taken";
7465                          }7565                          }
7466                        }7566                        }
7467                        description7567                        description
7468                          "Number of MAC addresses after which MAC limit action is taken";7568                          "Number of MAC addresses after which MAC limit action is taken";
7469                      }7569                      }
7470                      container action {7570                      container action {
7471                        description7571                        description
7472                          "MAC address limit enforcement action";7572                          "MAC address limit enforcement action";
7473                        container flood {7573                        container flood {
7474                          must7574                          must
7475                            "not(../no-flood or ../shutdown7575                            "not(../no-flood or ../shutdown
7476                             or ../none)";7576                             or ../none)";
7477                          presence "Indicates a flood node is configured.";7577                          presence "Indicates a flood node is configured.";
7478                          description7578                          description
7479                            "Stop learning but continue flooding";7579                            "Stop learning but continue flooding";
7480                        }7580                        }
7481                        container no-flood {7581                        container no-flood {
7482                          must7582                          must
7483                            "not(../flood or ../shutdown7583                            "not(../flood or ../shutdown
7484                             or ../none)";7584                             or ../none)";
7485                          presence "Indicates a no-flood node is configured.";7585                          presence "Indicates a no-flood node is configured.";
7486                          description7586                          description
7487                            "Stop learning and stop flooding";7587                            "Stop learning and stop flooding";
7488                        }7588                        }
7489                        container shutdown {7589                        container shutdown {
7490                          must7590                          must
7491                            "not(../flood or ../no-flood7591                            "not(../flood or ../no-flood
7492                             or ../none)";7592                             or ../none)";
7493                          presence "Indicates a shutdown node is configured.";7593                          presence "Indicates a shutdown node is configured.";
7494                          description7594                          description
7495                            "Stop forwarding";7595                            "Stop forwarding";
7496                        }7596                        }
7497                        container none {7597                        container none {
7498                          must7598                          must
7499                            "not(../flood or ../no-flood7599                            "not(../flood or ../no-flood
7500                             or ../shutdown)";7600                             or ../shutdown)";
7501                          presence "Indicates a none node is configured.";7601                          presence "Indicates a none node is configured.";
7502                          description7602                          description
7503                            "No action";7603                            "No action";
7504                        }7604                        }
7505                      }7605                      }
7506                      container notification {7606                      container notification {
7507                        description7607                        description
7508                          "MAC address limit notification action";7608                          "MAC address limit notification action";
7509                        container trap {7609                        container trap {
7510                          must7610                          must
7511                            "not(../both or ../none7611                            "not(../both or ../none
7512                             or ../syslog)";7612                             or ../syslog)";
7513                          presence "Indicates a trap node is configured.";7613                          presence "Indicates a trap node is configured.";
7514                          description7614                          description
7515                            "Generate SNMP trap";7615                            "Generate SNMP trap";
7516                        }7616                        }
7517                        container both {7617                        container both {
7518                          must7618                          must
7519                            "not(../trap or ../none7619                            "not(../trap or ../none
7520                             or ../syslog)";7620                             or ../syslog)";
7521                          presence "Indicates a both node is configured.";7621                          presence "Indicates a both node is configured.";
7522                          description7622                          description
7523                            "Generate syslog message and SNMP trap";7623                            "Generate syslog message and SNMP trap";
7524                        }7624                        }
7525                        container none {7625                        container none {
7526                          must7626                          must
7527                            "not(../trap or ../both7627                            "not(../trap or ../both
7528                             or ../syslog)";7628                             or ../syslog)";
7529                          presence "Indicates a none node is configured.";7629                          presence "Indicates a none node is configured.";
7530                          description7630                          description
7531                            "No notification";7631                            "No notification";
7532                        }7632                        }
7533                        container syslog {7633                        container syslog {
7534                          must7634                          must
7535                            "not(../trap or ../both7635                            "not(../trap or ../both
7536                             or ../none)";7636                             or ../none)";
7537                          presence "Indicates a syslog node is configured.";7637                          presence "Indicates a syslog node is configured.";
7538                          description7638                          description
7539                            "Generate syslog message";7639                            "Generate syslog message";
7540                        }7640                        }
7541                      }7641                      }
7542                    }7642                    }
7543                    container port-down {7643                    container port-down {
7544                      description7644                      description
7545                        "Configure action when port goes down";7645                        "Configure action when port goes down";
7546                      container flush {7646                      container flush {
7547                        presence "Indicates a flush node is configured.";7647                        presence "Indicates a flush node is configured.";
7548                        description7648                        description
7549                          "Configure MAC flush when port goes down";7649                          "Configure MAC flush when port goes down";
7550                        container disable {7650                        container disable {
7551                          presence "Indicates a disable node is configured.";7651                          presence "Indicates a disable node is configured.";
7552                          description7652                          description
7553                            "Disable MAC flush when port goes down";7653                            "Disable MAC flush when port goes down";
7554                        }7654                        }
7555                      }7655                      }
7556                    }7656                    }
7557                    container secure {7657                    container secure {
7558                      presence "Indicates a secure node is configured.";7658                      presence "Indicates a secure node is configured.";
7559                      description7659                      description
7560                        "MAC Secure configuration commands";7660                        "MAC Secure configuration commands";
7561                      container logging {7661                      container logging {
7562                        presence "Indicates a logging node is configured.";7662                        presence "Indicates a logging node is configured.";
7563                        description7663                        description
7564                          "Logging";7664                          "Logging";
7565                        container disable {7665                        container disable {
7566                          presence "Indicates a disable node is configured.";7666                          presence "Indicates a disable node is configured.";
7567                          description7667                          description
7568                            "disable logging";7668                            "disable logging";
7569                        }7669                        }
7570                      }7670                      }
7571                      container action {7671                      container action {
7572                        description7672                        description
7573                          "MAC secure enforcement action";7673                          "MAC secure enforcement action";
7574                        container none {7674                        container none {
7575                          must "not(../shutdown or ../restrict)";7675                          must "not(../shutdown or ../restrict)";
7576                          presence "Indicates a none node is configured.";7676                          presence "Indicates a none node is configured.";
7577                          description7677                          description
7578                            "Forward the violating packet and allow the MAC to be relearned";7678                            "Forward the violating packet and allow the MAC to be relearned";
7579                        }7679                        }
7580                        container shutdown {7680                        container shutdown {
7581                          must "not(../none or ../restrict)";7681                          must "not(../none or ../restrict)";
7582                          presence "Indicates a shutdown node is configured.";7682                          presence "Indicates a shutdown node is configured.";
7583                          description7683                          description
7584                            "Shutdown the violating bridge port";7684                            "Shutdown the violating bridge port";
7585                        }7685                        }
7586                        container restrict {7686                        container restrict {
7587                          must "not(../none or ../shutdown)";7687                          must "not(../none or ../shutdown)";
7588                          presence "Indicates a restrict node is configured.";7688                          presence "Indicates a restrict node is configured.";
7589                          description7689                          description
7590                            "Drop the violating packet and not allow the MAC to be relearned";7690                            "Drop the violating packet and not allow the MAC to be relearned";
7591                        }7691                        }
7592                      }7692                      }
7593                      container shutdown-recovery-timeout {7693                      container shutdown-recovery-timeout {
7594                        description7694                        description
7595                          "Recovery-timer to automatically revert shutdown action";7695                          "Recovery-timer to automatically revert shutdown action";
7596                        container disable {7696                        container disable {
7597                          must "not(../recovery-timer-in-second)";7697                          must "not(../recovery-timer-in-second)";
7598                          presence "Indicates a disable node is configured.";7698                          presence "Indicates a disable node is configured.";
7599                          description7699                          description
7600                            "Disable shutdown recovery timer";7700                            "Disable shutdown recovery timer";
7601                        }7701                        }
7602                        leaf recovery-timer-in-second {7702                        leaf recovery-timer-in-second {
7603                          type uint32 {7703                          type uint32 {
7604                            range "10..3600" {7704                            range "10..3600" {
7605                              description7705                              description
7606                                "Recovery timer in second";7706                                "Recovery timer in second";
7607                            }7707                            }
7608                          }7708                          }
7609                          must "not(../disable)";7709                          must "not(../disable)";
7610                          description7710                          description
7611                            "Recovery timer in second";7711                            "Recovery timer in second";
7612                        }7712                        }
7613                      }7713                      }
7614                      container disable {7714                      container disable {
7615                        presence "Indicates a disable node is configured.";7715                        presence "Indicates a disable node is configured.";
7616                        description7716                        description
7617                          "Disable MAC Secure";7717                          "Disable MAC Secure";
7618                      }7718                      }
7619                    }7719                    }
7620                  }7720                  }
7621                  container dhcp {7721                  container dhcp {
7622                    presence "Indicates a dhcp node is configured.";7722                    presence "Indicates a dhcp node is configured.";
7623                    description7723                    description
7624                      "DHCP protocol";7724                      "DHCP protocol";
7625                    container ipv4 {7725                    container ipv4 {
7626                      description7726                      description
7627                        "IP Version 4";7727                        "IP Version 4";
7628                      container snoop {7728                      container snoop {
7629                        presence "Indicates a snoop node is configured.";7729                        presence "Indicates a snoop node is configured.";
7630                        description7730                        description
7631                          "Set the snooping profile";7731                          "Set the snooping profile";
7632                        leaf profile {7732                        leaf profile {
7633                          type xr:Cisco-ios-xr-string {7733                          type xr:Cisco-ios-xr-string {
7634                            length "1..32" {7734                            length "1..32" {
7635                              description7735                              description
7636                                "DHCPv4 Snooping profile name";7736                                "DHCPv4 Snooping profile name";
7637                            }7737                            }
7638                          }7738                          }
7639                          description7739                          description
7640                            "Attach a DHCP profile";7740                            "Attach a DHCP profile";
7641                        }7741                        }
7642                      }7742                      }
7643                      container none {7743                      container none {
7644                        presence "Indicates a none node is configured.";7744                        presence "Indicates a none node is configured.";
7645                        description7745                        description
7646                          "Disable DHCP snooping";7746                          "Disable DHCP snooping";
7647                      }7747                      }
7648                    }7748                    }
7649                  }7749                  }
7650                  container igmp {7750                  container igmp {
7651                    description7751                    description
7652                      "IGMP protocol";7752                      "IGMP protocol";
7653                    container snooping {7753                    container snooping {
7654                      description7754                      description
7655                        "Set the snooping profile";7755                        "Set the snooping profile";
7656                      leaf profile {7756                      leaf profile {
7657                        type xr:Cisco-ios-xr-string {7757                        type xr:Cisco-ios-xr-string {
7658                          length "1..32" {7758                          length "1..32" {
7659                            description7759                            description
7660                              "IGMP Snooping profile name";7760                              "IGMP Snooping profile name";
7661                          }7761                          }
7662                        }7762                        }
7663                        description7763                        description
7664                          "Attach an IGMP profile";7764                          "Attach an IGMP profile";
7665                      }7765                      }
7666                    }7766                    }
7667                  }7767                  }
7668                  container mld {7768                  container mld {
7669                    description7769                    description
7670                      "MLD protocol";7770                      "MLD protocol";
7671                    container snooping {7771                    container snooping {
7672                      description7772                      description
7673                        "Set the snooping profile";7773                        "Set the snooping profile";
7674                      leaf profile {7774                      leaf profile {
7675                        type xr:Cisco-ios-xr-string {7775                        type xr:Cisco-ios-xr-string {
7676                          length "1..32" {7776                          length "1..32" {
7677                            description7777                            description
7678                              "MLD Snooping profile name";7778                              "MLD Snooping profile name";
7679                          }7779                          }
7680                        }7780                        }
7681                        description7781                        description
7682                          "Attach a MLD profile";7782                          "Attach a MLD profile";
7683                      }7783                      }
7684                    }7784                    }
7685                  }7785                  }
7686                  container backup {7786                  container backup {
7687                    description7787                    description
7688                      "Backup pseudowire for the access pseudowire";7788                      "Backup pseudowire for the access pseudowire";
7689                    container neighbors {7789                    container neighbors {
7690                      description7790                      description
7691                        "Specify the peer to cross connect";7791                        "Specify the peer to cross connect";
7692                      list neighbor {7792                      list neighbor {
7693                        key "address pw-id";7793                        key "address pw-id";
7694                        description7794                        description
7695                          "Specify the peer to cross connect";7795                          "Specify the peer to cross connect";
7696                        leaf address {7796                        leaf address {
7697                          type inet:ipv4-address-no-zone;7797                          type inet:ipv4-address-no-zone;
7698                          description7798                          description
7699                            "IPv4 address of the peer";7799                            "IPv4 address of the peer";
7700                        }7800                        }
7701                        leaf pw-id {7801                        leaf pw-id {
7702                          type uint32 {7802                          type uint32 {
7703                            range "1..4294967295" {7803                            range "1..4294967295" {
7704                              description7804                              description
7705                                "Pseudowire ID";7805                                "Pseudowire ID";
7706                            }7806                            }
7707                          }7807                          }
7708                          description7808                          description
7709                            "Specify the pseudowire id";7809                            "Specify the pseudowire id";
7710                        }7810                        }
7711                        leaf pw-class {7811                        leaf pw-class {
7712                          type xr:Cisco-ios-xr-string {7812                          type xr:Cisco-ios-xr-string {
7713                            length "1..32" {7813                            length "1..32" {
7714                              description7814                              description
7715                                "Pseudowire-class name";7815                                "Pseudowire-class name";
7716                            }7816                            }
7717                          }7817                          }
7718                          description7818                          description
7719                            "PW class template name to use for this pseudowire";7819                            "PW class template name to use for this pseudowire";
7720                        }7820                        }
7721                      }7821                      }
7722                    }7822                    }
7723                  }7823                  }
7724                }7824                }
7725                container evpn {7825                container evpn {
7726                  description7826                  description
7727                    "Specify the Ethernet VPN";7827                    "Specify the Ethernet VPN";
7728                  list evi {7828                  list evi {
7729                    key "vpn-id target";7829                    key "vpn-id target";
7730                    description7830                    description
7731                      "Ethernet VPN Identifier";7831                      "Ethernet VPN Identifier";
7732                    leaf vpn-id {7832                    leaf vpn-id {
7733                      type uint32 {7833                      type uint32 {
7734                        range "1..65534" {7834                        range "1..65534" {
7735                          description7835                          description
7736                            "Ethernet VPN ID to set";7836                            "Ethernet VPN ID to set";
7737                        }7837                        }
7738                      }7838                      }
7739                      description7839                      description
7740                        "Configure EVPN Instance VPN ID";7840                        "Configure EVPN Instance VPN ID";
7741                    }7841                    }
7742                    leaf target {7842                    leaf target {
7743                      type uint32 {7843                      type uint32 {
7744                        range "1..16777215" {7844                        range "1..16777215" {
7745                          description7845                          description
7746                            "Remote ac-id";7846                            "Remote ac-id";
7747                        }7847                        }
7748                      }7848                      }
7749                      description7849                      description
7750                        "Specify remote attachment circuit identifier";7850                        "Specify remote attachment circuit identifier";
7751                    }7851                    }
7752                  }7852                  }
7753                }7853                }
7754              }7854              }
7755              leaf description {7855              leaf description {
7756                if-feature "l2vpn_is_cli_supported";7856                if-feature "l2vpn_is_cli_supported";
7757                type string {7857                type string {
7758                  length "1..64" {7858                  length "1..64" {
7759                    description7859                    description
7760                      "Bridge-Domain description string";7860                      "Bridge-Domain description string";
7761                  }7861                  }
7762                }7862                }
7763                description7863                description
7764                  "Description for Bridge-Domain";7864                  "Description for Bridge-Domain";
7765              }7865              }
7766              container efp-visibility {7866              container efp-visibility {
7767                presence "Indicates a efp-visibility node is configured.";7867                presence "Indicates a efp-visibility node is configured.";
7768                description7868                description
7769                  "Enable multicast for multiple VLANs in the bridge of a BVI";7869                  "Enable multicast for multiple VLANs in the bridge of a BVI";
7770              }7870              }
7771              container etree {7871              container etree {
7772                presence "Indicates a etree node is configured.";7872                presence "Indicates a etree node is configured.";
7773                description7873                description
7774                  "Configure Bridge Domain  EVPN E-Tree";7874                  "Configure Bridge Domain  EVPN E-Tree";
7775                container leaf {7875                container leaf {
7776                  presence "Indicates a leaf node is configured.";7876                  presence "Indicates a leaf node is configured.";
7777                  description7877                  description
7778                    "Designate Bridge Domain as EVPN E-Tree Leaf";7878                    "Designate Bridge Domain as EVPN E-Tree Leaf";
7779                }7879                }
7780              }7880              }
7781              container member {7881              container member {
7782                description7882                description
7783                  "Bridge domain member";7883                  "Bridge domain member";
7784                container vnis {7884                container vnis {
7785                  description7885                  description
7786                    "Assign VxLAN Network Identifier to bridge domain";7886                    "Assign VxLAN Network Identifier to bridge domain";
7787                  list vni {7887                  list vni {
7788                    key "vni-id";7888                    key "vni-id";
7789                    description7889                    description
7790                      "Assign VxLAN Network Identifier to bridge domain";7890                      "Assign VxLAN Network Identifier to bridge domain";
7791                    leaf vni-id {7891                    leaf vni-id {
7792                      type uint32 {7892                      type uint32 {
7793                        range "1..16777215" {7893                        range "1..16777215" {
7794                          description7894                          description
7795                            "Specify VxLAN Network Identifier value";7895                            "Specify VxLAN Network Identifier value";
7796                        }7896                        }
7797                      }7897                      }
7798                      description7898                      description
7799                        "Assign VxLAN Network Identifier to bridge domain";7899                        "Assign VxLAN Network Identifier to bridge domain";
7800                    }7900                    }
7801                    container static-mac-addresses {7901                    container static-mac-addresses {
7802                      description7902                      description
7803                        "Static MAC address";7903                        "Static MAC address";
7804                      list static-mac-address {7904                      list static-mac-address {
7805                        key "mac-address";7905                        key "mac-address";
7806                        description7906                        description
7807                          "Static MAC address";7907                          "Static MAC address";
7808                        leaf mac-address {7908                        leaf mac-address {
7809                          type yang:mac-address;7909                          type yang:mac-address;
7810                          description7910                          description
7811                            "Static MAC address";7911                            "Static MAC address";
7812                        }7912                        }
7813                        leaf next-hop {7913                        leaf next-hop {
7814                          type inet:ipv4-address-no-zone;7914                          type inet:ipv4-address-no-zone;
7815                          description7915                          description
7816                            "Specify the next hop IP address";7916                            "Specify the next hop IP address";
7817                        }7917                        }
7818                      }7918                      }
7819                    }7919                    }
7820                  }7920                  }
7821                }7921                }
7822              }7922              }
7823              container pbb {7923              container pbb {
7824                description7924                description
7825                  "Configure Provider Backbone Bridge";7925                  "Configure Provider Backbone Bridge";
7826                container core {7926                container core {
7827                  presence "Indicates a core node is configured.";7927                  presence "Indicates a core node is configured.";
7828                  description7928                  description
7829                    "PBB core bridge domain";7929                    "PBB core bridge domain";
7830                  container rewrite {7930                  container rewrite {
7831                    description7931                    description
7832                      "Set the tag rewriting policy";7932                      "Set the tag rewriting policy";
7833                    container ingress {7933                    container ingress {
7834                      description7934                      description
7835                        "Set the tag rewriting policy";7935                        "Set the tag rewriting policy";
7836                      container tag {7936                      container tag {
7837                        description7937                        description
7838                          "Set the tag rewriting policy";7938                          "Set the tag rewriting policy";
7839                        container push {7939                        container push {
7840                          description7940                          description
7841                            "Push one or more tags";7941                            "Push one or more tags";
7842                          leaf dot1ad {7942                          leaf dot1ad {
7843                            type uint32 {7943                            type uint32 {
7844                              range "1..4094" {7944                              range "1..4094" {
7845                                description7945                                description
7846                                  "VLAN ID to push";7946                                  "VLAN ID to push";
7847                              }7947                              }
7848                            }7948                            }
7849                            description7949                            description
7850                              "Push a Dot1ad tag";7950                              "Push a Dot1ad tag";
7851                          }7951                          }
7852                        }7952                        }
7853                      }7953                      }
7854                    }7954                    }
7855                  }7955                  }
7856                  container mac {7956                  container mac {
7857                    description7957                    description
7858                      "MAC configuration commands";7958                      "MAC configuration commands";
7859                    container aging {7959                    container aging {
7860                      description7960                      description
7861                        "MAC-Aging configuration commands";7961                        "MAC-Aging configuration commands";
7862                      leaf time {7962                      leaf time {
7863                        type uint32 {7963                        type uint32 {
7864                          range "300..30000" {7964                          range "300..30000" {
7865                            description7965                            description
7866                              "MAC address aging time in seconds";7966                              "MAC address aging time in seconds";
7867                          }7967                          }
7868                        }7968                        }
7869                        description7969                        description
7870                          "Mac aging";7970                          "Mac aging";
7871                      }7971                      }
7872                      container type {7972                      container type {
7873                        description7973                        description
7874                          "MAC address aging type";7974                          "MAC address aging type";
7875                        container absolute {7975                        container absolute {
7876                          must "not(../inactivity)";7976                          must "not(../inactivity)";
7877                          presence "Indicates a absolute node is configured.";7977                          presence "Indicates a absolute node is configured.";
7878                          description7978                          description
7879                            "Absolute aging type";7979                            "Absolute aging type";
7880                        }7980                        }
7881                        container inactivity {7981                        container inactivity {
7882                          must "not(../absolute)";7982                          must "not(../absolute)";
7883                          presence "Indicates a inactivity node is configured.";7983                          presence "Indicates a inactivity node is configured.";
7884                          description7984                          description
7885                            "Inactivity aging type";7985                            "Inactivity aging type";
7886                        }7986                        }
7887                      }7987                      }
7888                    }7988                    }
7889                    container learning {7989                    container learning {
7890                      presence "Indicates a learning node is configured.";7990                      presence "Indicates a learning node is configured.";
7891                      description7991                      description
7892                        "MAC learning";7992                        "MAC learning";
7893                      container disable {7993                      container disable {
7894                        presence "Indicates a disable node is configured.";7994                        presence "Indicates a disable node is configured.";
7895                        description7995                        description
7896                          "Disable MAC learning";7996                          "Disable MAC learning";
7897                      }7997                      }
7898                    }7998                    }
nn7999                  }
8000                  container mmrp-flood-optimization {
8001                    presence "Indicates a mmrp-flood-optimization node is configured.";
8002                    description
8003                      "Enable flood optimization for MMRP";
7899                  }8004                  }
7900                  container evis {8005                  container evis {
7901                    description8006                    description
7902                      "Ethernet VPN identifier";8007                      "Ethernet VPN identifier";
7903                    list evi {8008                    list evi {
7904                      key "vpn-id";8009                      key "vpn-id";
7905                      description8010                      description
7906                        "Ethernet VPN identifier";8011                        "Ethernet VPN identifier";
7907                      leaf vpn-id {8012                      leaf vpn-id {
7908                        type uint32 {8013                        type uint32 {
7909                          range "1..65534" {8014                          range "1..65534" {
7910                            description8015                            description
7911                              "Ethernet VPN ID to set";8016                              "Ethernet VPN ID to set";
7912                          }8017                          }
7913                        }8018                        }
7914                        description8019                        description
7915                          "Ethernet VPN identifier";8020                          "Ethernet VPN identifier";
7916                      }8021                      }
7917                    }8022                    }
7918                  }8023                  }
7919                }8024                }
7920                container edge {8025                container edge {
7921                  description8026                  description
7922                    "PBB edge bridge domain";8027                    "PBB edge bridge domain";
7923                  list i-sid {8028                  list i-sid {
7924                    key "instance-id core-bridge-name";8029                    key "instance-id core-bridge-name";
7925                    description8030                    description
7926                      "Configure Service Instance Identifier";8031                      "Configure Service Instance Identifier";
7927                    leaf instance-id {8032                    leaf instance-id {
7928                      type uint32 {8033                      type uint32 {
7929                        range "256..16777214" {8034                        range "256..16777214" {
7930                          description8035                          description
7931                            "Service Instance ID";8036                            "Service Instance ID";
7932                        }8037                        }
7933                      }8038                      }
7934                      description8039                      description
7935                        "Configure Service Instance Identifier";8040                        "Configure Service Instance Identifier";
7936                    }8041                    }
7937                    leaf core-bridge-name {8042                    leaf core-bridge-name {
7938                      type xr:Cisco-ios-xr-string {8043                      type xr:Cisco-ios-xr-string {
7939                        length "1..27" {8044                        length "1..27" {
7940                          description8045                          description
7941                            "Name of the PBB core bridge domain";8046                            "Name of the PBB core bridge domain";
7942                        }8047                        }
7943                      }8048                      }
7944                      description8049                      description
7945                        "Specifiy PBB core bridge domain to associate with";8050                        "Specifiy PBB core bridge domain to associate with";
7946                    }8051                    }
7947                    container static-mac-addresses {8052                    container static-mac-addresses {
7948                      description8053                      description
7949                        "Static customer MAC address";8054                        "Static customer MAC address";
7950                      list static-mac-address {8055                      list static-mac-address {
7951                        key "mac-address";8056                        key "mac-address";
7952                        description8057                        description
7953                          "Static customer MAC address";8058                          "Static customer MAC address";
7954                        leaf mac-address {8059                        leaf mac-address {
7955                          type yang:mac-address;8060                          type yang:mac-address;
7956                          description8061                          description
7957                            "Static customer MAC address";8062                            "Static customer MAC address";
7958                        }8063                        }
7959                        leaf bmac {8064                        leaf bmac {
7960                          type yang:mac-address;8065                          type yang:mac-address;
7961                          mandatory true;8066                          mandatory true;
7962                          description8067                          description
7963                            "Static backbone MAC address to map with";8068                            "Static backbone MAC address to map with";
7964                        }8069                        }
7965                      }8070                      }
7966                    }8071                    }
7967                    leaf unknown-unicast-bmac {8072                    leaf unknown-unicast-bmac {
7968                      type yang:mac-address;8073                      type yang:mac-address;
7969                      description8074                      description
7970                        "Unknown Unicast backbone MAC address";8075                        "Unknown Unicast backbone MAC address";
7971                    }8076                    }
7972                    container split-horizon {8077                    container split-horizon {
7973                      description8078                      description
7974                        "Configure split horizon option";8079                        "Configure split horizon option";
7975                      container group {8080                      container group {
7976                        description8081                        description
7977                          "Configure split horizon group option";8082                          "Configure split horizon group option";
7978                        container vfi {8083                        container vfi {
7979                          description8084                          description
7980                            "Configure split horizon group vfi option";8085                            "Configure split horizon group vfi option";
7981                          container disable {8086                          container disable {
7982                            presence "Indicates a disable node is configured.";8087                            presence "Indicates a disable node is configured.";
7983                            description8088                            description
7984                              "Configure split horizon group vfi disable";8089                              "Configure split horizon group vfi disable";
7985                          }8090                          }
7986                        }8091                        }
7987                      }8092                      }
7988                    }8093                    }
7989                    container mac {8094                    container mac {
7990                      description8095                      description
7991                        "MAC configuration commands";8096                        "MAC configuration commands";
7992                      container aging {8097                      container aging {
7993                        description8098                        description
7994                          "MAC-Aging configuration commands";8099                          "MAC-Aging configuration commands";
7995                        leaf time {8100                        leaf time {
7996                          type uint32 {8101                          type uint32 {
7997                            range "300..30000" {8102                            range "300..30000" {
7998                              description8103                              description
7999                                "MAC address aging time in seconds";8104                                "MAC address aging time in seconds";
8000                            }8105                            }
8001                          }8106                          }
8002                          description8107                          description
8003                            "Mac aging";8108                            "Mac aging";
8004                        }8109                        }
8005                        container type {8110                        container type {
8006                          description8111                          description
8007                            "MAC address aging type";8112                            "MAC address aging type";
8008                          container absolute {8113                          container absolute {
8009                            must "not(../inactivity)";8114                            must "not(../inactivity)";
8010                            presence "Indicates a absolute node is configured.";8115                            presence "Indicates a absolute node is configured.";
8011                            description8116                            description
8012                              "Absolute aging type";8117                              "Absolute aging type";
8013                          }8118                          }
8014                          container inactivity {8119                          container inactivity {
8015                            must "not(../absolute)";8120                            must "not(../absolute)";
8016                            presence "Indicates a inactivity node is configured.";8121                            presence "Indicates a inactivity node is configured.";
8017                            description8122                            description
8018                              "Inactivity aging type";8123                              "Inactivity aging type";
8019                          }8124                          }
8020                        }8125                        }
8021                      }8126                      }
8022                      container learning {8127                      container learning {
8023                        presence "Indicates a learning node is configured.";8128                        presence "Indicates a learning node is configured.";
8024                        description8129                        description
8025                          "MAC learning";8130                          "MAC learning";
8026                        container disable {8131                        container disable {
8027                          presence "Indicates a disable node is configured.";8132                          presence "Indicates a disable node is configured.";
8028                          description8133                          description
8029                            "Disable MAC learning";8134                            "Disable MAC learning";
8030                        }8135                        }
8031                      }8136                      }
8032                      container limit {8137                      container limit {
8033                        description8138                        description
8034                          "MAC-Limit configuration commands";8139                          "MAC-Limit configuration commands";
8035                        leaf maximum {8140                        leaf maximum {
8036                          type uint32 {8141                          type uint32 {
8037                            range "0..4294967295" {8142                            range "0..4294967295" {
8038                              description8143                              description
8039                                "Number of MAC addresses after which MAC limit action is taken";8144                                "Number of MAC addresses after which MAC limit action is taken";
8040                            }8145                            }
8041                          }8146                          }
8042                          description8147                          description
8043                            "Number of MAC addresses after which MAC limit action is taken";8148                            "Number of MAC addresses after which MAC limit action is taken";
8044                        }8149                        }
8045                        container action {8150                        container action {
8046                          description8151                          description
8047                            "MAC address limit enforcement action";8152                            "MAC address limit enforcement action";
8048                          container flood {8153                          container flood {
8049                            must8154                            must
8050                              "not(../no-flood or ../shutdown8155                              "not(../no-flood or ../shutdown
8051                               or ../none)";8156                               or ../none)";
8052                            presence "Indicates a flood node is configured.";8157                            presence "Indicates a flood node is configured.";
8053                            description8158                            description
8054                              "Stop learning but continue flooding";8159                              "Stop learning but continue flooding";
8055                          }8160                          }
8056                          container no-flood {8161                          container no-flood {
8057                            must8162                            must
8058                              "not(../flood or ../shutdown8163                              "not(../flood or ../shutdown
8059                               or ../none)";8164                               or ../none)";
8060                            presence "Indicates a no-flood node is configured.";8165                            presence "Indicates a no-flood node is configured.";
8061                            description8166                            description
8062                              "Stop learning and stop flooding";8167                              "Stop learning and stop flooding";
8063                          }8168                          }
8064                          container shutdown {8169                          container shutdown {
8065                            must8170                            must
8066                              "not(../flood or ../no-flood8171                              "not(../flood or ../no-flood
8067                               or ../none)";8172                               or ../none)";
8068                            presence "Indicates a shutdown node is configured.";8173                            presence "Indicates a shutdown node is configured.";
8069                            description8174                            description
8070                              "Stop forwarding";8175                              "Stop forwarding";
8071                          }8176                          }
8072                          container none {8177                          container none {
8073                            must8178                            must
8074                              "not(../flood or ../no-flood8179                              "not(../flood or ../no-flood
8075                               or ../shutdown)";8180                               or ../shutdown)";
8076                            presence "Indicates a none node is configured.";8181                            presence "Indicates a none node is configured.";
8077                            description8182                            description
8078                              "No action";8183                              "No action";
8079                          }8184                          }
8080                        }8185                        }
8081                        container notification {8186                        container notification {
8082                          description8187                          description
8083                            "MAC address limit notification action";8188                            "MAC address limit notification action";
8084                          container trap {8189                          container trap {
8085                            must8190                            must
8086                              "not(../both or ../none8191                              "not(../both or ../none
8087                               or ../syslog)";8192                               or ../syslog)";
8088                            presence "Indicates a trap node is configured.";8193                            presence "Indicates a trap node is configured.";
8089                            description8194                            description
8090                              "Generate SNMP trap";8195                              "Generate SNMP trap";
8091                          }8196                          }
8092                          container both {8197                          container both {
8093                            must8198                            must
8094                              "not(../trap or ../none8199                              "not(../trap or ../none
8095                               or ../syslog)";8200                               or ../syslog)";
8096                            presence "Indicates a both node is configured.";8201                            presence "Indicates a both node is configured.";
8097                            description8202                            description
8098                              "Generate syslog message and SNMP trap";8203                              "Generate syslog message and SNMP trap";
8099                          }8204                          }
8100                          container none {8205                          container none {
8101                            must8206                            must
8102                              "not(../trap or ../both8207                              "not(../trap or ../both
8103                               or ../syslog)";8208                               or ../syslog)";
8104                            presence "Indicates a none node is configured.";8209                            presence "Indicates a none node is configured.";
8105                            description8210                            description
8106                              "No notification";8211                              "No notification";
8107                          }8212                          }
8108                          container syslog {8213                          container syslog {
8109                            must8214                            must
8110                              "not(../trap or ../both8215                              "not(../trap or ../both
8111                               or ../none)";8216                               or ../none)";
8112                            presence "Indicates a syslog node is configured.";8217                            presence "Indicates a syslog node is configured.";
8113                            description8218                            description
8114                              "Generate syslog message";8219                              "Generate syslog message";
8115                          }8220                          }
8116                        }8221                        }
8117                      }8222                      }
8118                      container secure {8223                      container secure {
8119                        presence "Indicates a secure node is configured.";8224                        presence "Indicates a secure node is configured.";
8120                        description8225                        description
8121                          "MAC Secure configuration commands";8226                          "MAC Secure configuration commands";
8122                        container logging {8227                        container logging {
8123                          presence "Indicates a logging node is configured.";8228                          presence "Indicates a logging node is configured.";
8124                          description8229                          description
8125                            "Logging";8230                            "Logging";
8126                          container disable {8231                          container disable {
8127                            presence "Indicates a disable node is configured.";8232                            presence "Indicates a disable node is configured.";
8128                            description8233                            description
8129                              "disable logging";8234                              "disable logging";
8130                          }8235                          }
8131                        }8236                        }
8132                        container action {8237                        container action {
8133                          description8238                          description
8134                            "MAC secure enforcement action";8239                            "MAC secure enforcement action";
8135                          container none {8240                          container none {
8136                            must "not(../shutdown or ../restrict)";8241                            must "not(../shutdown or ../restrict)";
8137                            presence "Indicates a none node is configured.";8242                            presence "Indicates a none node is configured.";
8138                            description8243                            description
8139                              "Forward the violating packet and allow the MAC to be relearned";8244                              "Forward the violating packet and allow the MAC to be relearned";
8140                          }8245                          }
8141                          container shutdown {8246                          container shutdown {
8142                            must "not(../none or ../restrict)";8247                            must "not(../none or ../restrict)";
8143                            presence "Indicates a shutdown node is configured.";8248                            presence "Indicates a shutdown node is configured.";
8144                            description8249                            description
8145                              "Shutdown the violating bridge port";8250                              "Shutdown the violating bridge port";
8146                          }8251                          }
8147                          container restrict {8252                          container restrict {
8148                            must "not(../none or ../shutdown)";8253                            must "not(../none or ../shutdown)";
8149                            presence "Indicates a restrict node is configured.";8254                            presence "Indicates a restrict node is configured.";
8150                            description8255                            description
8151                              "Drop the violating packet and not allow the MAC to be relearned";8256                              "Drop the violating packet and not allow the MAC to be relearned";
8152                          }8257                          }
8153                        }8258                        }
8154                        container disable {8259                        container disable {
8155                          presence "Indicates a disable node is configured.";8260                          presence "Indicates a disable node is configured.";
8156                          description8261                          description
8157                            "Disable MAC Secure";8262                            "Disable MAC Secure";
8158                        }8263                        }
8159                        container accept-shutdown {8264                        container accept-shutdown {
8160                          presence "Indicates a accept-shutdown node is configured.";8265                          presence "Indicates a accept-shutdown node is configured.";
8161                          description8266                          description
8162                            "Accept shutdown action to be taken due to MAC violation";8267                            "Accept shutdown action to be taken due to MAC violation";
8163                        }8268                        }
8164                      }8269                      }
8165                    }8270                    }
8166                    container dhcp {8271                    container dhcp {
8167                      presence "Indicates a dhcp node is configured.";8272                      presence "Indicates a dhcp node is configured.";
8168                      description8273                      description
8169                        "DHCP protocol";8274                        "DHCP protocol";
8170                      container ipv4 {8275                      container ipv4 {
8171                        description8276                        description
8172                          "IP Version 4";8277                          "IP Version 4";
8173                        container snoop {8278                        container snoop {
8174                          presence "Indicates a snoop node is configured.";8279                          presence "Indicates a snoop node is configured.";
8175                          description8280                          description
8176                            "Set the snooping profile";8281                            "Set the snooping profile";
8177                          leaf profile {8282                          leaf profile {
8178                            type xr:Cisco-ios-xr-string {8283                            type xr:Cisco-ios-xr-string {
8179                              length "1..32" {8284                              length "1..32" {
8180                                description8285                                description
8181                                  "DHCPv4 Snooping profile name";8286                                  "DHCPv4 Snooping profile name";
8182                              }8287                              }
8183                            }8288                            }
8184                            description8289                            description
8185                              "Attach a DHCP profile";8290                              "Attach a DHCP profile";
8186                          }8291                          }
8187                        }8292                        }
8188                        container none {8293                        container none {
8189                          presence "Indicates a none node is configured.";8294                          presence "Indicates a none node is configured.";
8190                          description8295                          description
8191                            "Disable DHCP snooping";8296                            "Disable DHCP snooping";
8192                        }8297                        }
8193                      }8298                      }
8194                    }8299                    }
8195                    container igmp {8300                    container igmp {
8196                      description8301                      description
8197                        "IGMP protocol";8302                        "IGMP protocol";
8198                      container snooping {8303                      container snooping {
8199                        description8304                        description
8200                          "Set the snooping profile";8305                          "Set the snooping profile";
8201                        leaf profile {8306                        leaf profile {
8202                          type xr:Cisco-ios-xr-string {8307                          type xr:Cisco-ios-xr-string {
8203                            length "1..32" {8308                            length "1..32" {
8204                              description8309                              description
8205                                "IGMP Snooping profile name";8310                                "IGMP Snooping profile name";
8206                            }8311                            }
8207                          }8312                          }
8208                          description8313                          description
8209                            "Attach an IGMP profile";8314                            "Attach an IGMP profile";
8210                        }8315                        }
8211                      }8316                      }
8212                    }8317                    }
8213                  }8318                  }
8214                }8319                }
8215              }8320              }
8216              container nv {8321              container nv {
8217                description8322                description
8218                  "Configure nV Satellite Settings";8323                  "Configure nV Satellite Settings";
8219                container satellite {8324                container satellite {
8220                  presence "Indicates a satellite node is configured.";8325                  presence "Indicates a satellite node is configured.";
8221                  description8326                  description
8222                    "Configure nV Satellite Settings";8327                    "Configure nV Satellite Settings";
8223                  container offload {8328                  container offload {
8224                    description8329                    description
8225                      "Hardware offloading";8330                      "Hardware offloading";
8226                    container ipv4 {8331                    container ipv4 {
8227                      description8332                      description
8228                        "IPv4";8333                        "IPv4";
8229                      container multicast {8334                      container multicast {
8230                        description8335                        description
8231                          "Multicast";8336                          "Multicast";
8232                        container enable {8337                        container enable {
8233                          presence "Indicates a enable node is configured.";8338                          presence "Indicates a enable node is configured.";
8234                          description8339                          description
8235                            "Enable IPv4 Multicast Offloading";8340                            "Enable IPv4 Multicast Offloading";
8236                        }8341                        }
8237                      }8342                      }
8238                    }8343                    }
8239                  }8344                  }
8240                }8345                }
8241              }8346              }
8242            }8347            }
8243          }8348          }
8244        }8349        }
8245      }8350      }
8246    }8351    }
8247    container pbb {8352    container pbb {
8248      description8353      description
8249        "PBB configuration commands";8354        "PBB configuration commands";
8250      leaf backbone-source-mac {8355      leaf backbone-source-mac {
8251        type yang:mac-address;8356        type yang:mac-address;
8252        description8357        description
8253          "Backbone Source MAC";8358          "Backbone Source MAC";
8254      }8359      }
8255    }8360    }
8256    container redundancy {8361    container redundancy {
8257      presence "Indicates a redundancy node is configured.";8362      presence "Indicates a redundancy node is configured.";
8258      description8363      description
8259        "Redundancy";8364        "Redundancy";
8260      container iccp {8365      container iccp {
8261        description8366        description
8262          "Inter-Chassis Communication Protocol";8367          "Inter-Chassis Communication Protocol";
8263        container groups {8368        container groups {
8264          description8369          description
8265            "Group configuration";8370            "Group configuration";
8266          list group {8371          list group {
8267            key "group-number";8372            key "group-number";
8268            description8373            description
8269              "Group configuration";8374              "Group configuration";
8270            leaf group-number {8375            leaf group-number {
8271              type uint32 {8376              type uint32 {
8272                range "1..4294967295" {8377                range "1..4294967295" {
8273                  description8378                  description
8274                    "Enter group number";8379                    "Enter group number";
8275                }8380                }
8276              }8381              }
8277              description8382              description
8278                "Group configuration";8383                "Group configuration";
8279            }8384            }
8280            list interface {8385            list interface {
8281              key "interface-name";8386              key "interface-name";
8282              description8387              description
8283                "Interface name";8388                "Interface name";
8284              leaf interface-name {8389              leaf interface-name {
8285                type xr:Interface-name;8390                type xr:Interface-name;
8286                description8391                description
8287                  "Interface name";8392                  "Interface name";
8288              }8393              }
8289              container primary {8394              container primary {
8290                description8395                description
8291                  "Primary VLAN configuration";8396                  "Primary VLAN configuration";
8292                leaf vlan {8397                leaf vlan {
8293                  type xr:Cisco-ios-xr-string {8398                  type xr:Cisco-ios-xr-string {
8294                    length "1..800" {8399                    length "1..800" {
8295                      description8400                      description
8296                        "List of VLAN IDs in the form of 1-3,5,8-11";8401                        "List of VLAN IDs in the form of 1-3,5,8-11";
8297                    }8402                    }
8298                  }8403                  }
8299                  description8404                  description
8300                    "Assign primary VLANs";8405                    "Assign primary VLANs";
8301                }8406                }
8302              }8407              }
8303              container secondary {8408              container secondary {
8304                description8409                description
8305                  "Secondary VLAN configuration";8410                  "Secondary VLAN configuration";
8306                leaf vlan {8411                leaf vlan {
8307                  type xr:Cisco-ios-xr-string {8412                  type xr:Cisco-ios-xr-string {
8308                    length "1..800" {8413                    length "1..800" {
8309                      description8414                      description
8310                        "List of VLAN IDs in the form of 1-3,5,8-11";8415                        "List of VLAN IDs in the form of 1-3,5,8-11";
8311                    }8416                    }
8312                  }8417                  }
8313                  description8418                  description
8314                    "Assign secondary VLANs";8419                    "Assign secondary VLANs";
8315                }8420                }
8316              }8421              }
8317              container mac-flush {8422              container mac-flush {
8318                description8423                description
8319                  "Enable STP TCN MAC flushing. Default is MVRP";8424                  "Enable STP TCN MAC flushing. Default is MVRP";
8320                container stp-tcn {8425                container stp-tcn {
8321                  presence "Indicates a stp-tcn node is configured.";8426                  presence "Indicates a stp-tcn node is configured.";
8322                  description8427                  description
8323                    "STP topology change notification";8428                    "STP topology change notification";
8324                }8429                }
8325              }8430              }
8326              container recovery {8431              container recovery {
8327                description8432                description
8328                  "Failure recovery reversion delay timer.  Default is revertive after 180 seconds.";8433                  "Failure recovery reversion delay timer.  Default is revertive after 180 seconds.";
8329                leaf delay {8434                leaf delay {
8330                  type uint32 {8435                  type uint32 {
8331                    range "30..3600" {8436                    range "30..3600" {
8332                      description8437                      description
8333                        "input time in seconds";8438                        "input time in seconds";
8334                    }8439                    }
8335                  }8440                  }
8336                  description8441                  description
8337                    "Specify delay before recovery reversion after failure clears";8442                    "Specify delay before recovery reversion after failure clears";
8338                }8443                }
8339              }8444              }
8340            }8445            }
8341            container multi-homing {8446            container multi-homing {
8342              description8447              description
8343                "ICCP-based service multi-homing";8448                "ICCP-based service multi-homing";
8344              leaf node-id {8449              leaf node-id {
8345                type uint32 {8450                type uint32 {
8346                  range "0..254" {8451                  range "0..254" {
8347                    description8452                    description
8348                      "Node ID";8453                      "Node ID";
8349                  }8454                  }
8350                }8455                }
8351                description8456                description
8352                  "Enter multi-homing node ID";8457                  "Enter multi-homing node ID";
8353              }8458              }
8354            }8459            }
8355          }8460          }
8356        }8461        }
8357      }8462      }
8358    }8463    }
8359    container ethernet {8464    container ethernet {
8360      description8465      description
8361        "Ethernet";8466        "Ethernet";
8362      container ring {8467      container ring {
8363        description8468        description
8364          "Ring";8469          "Ring";
8365        list g8032 {8470        list g8032 {
8366          key "ethernet-ring-name";8471          key "ethernet-ring-name";
8367          description8472          description
8368            "Specify the g.8032 ethernet ring";8473            "Specify the g.8032 ethernet ring";
8369          leaf ethernet-ring-name {8474          leaf ethernet-ring-name {
8370            type xr:Cisco-ios-xr-string {8475            type xr:Cisco-ios-xr-string {
8371              length "1..32" {8476              length "1..32" {
8372                description8477                description
8373                  "Name of the ethernet ring";8478                  "Name of the ethernet ring";
8374              }8479              }
8375            }8480            }
8376            description8481            description
8377              "Specify the g.8032 ethernet ring";8482              "Specify the g.8032 ethernet ring";
8378          }8483          }
8379          container port0 {8484          container port0 {
8380            description8485            description
8381              "Port0 of the local node connected to G.8032 ring";8486              "Port0 of the local node connected to G.8032 ring";
8382            list interface {8487            list interface {
8383              key "interface-name";8488              key "interface-name";
8384              description8489              description
8385                "Assign interface as port0";8490                "Assign interface as port0";
8386              leaf interface-name {8491              leaf interface-name {
8387                type xr:Interface-name;8492                type xr:Interface-name;
8388                description8493                description
8389                  "Assign interface as port0";8494                  "Assign interface as port0";
8390              }8495              }
8391              container monitor {8496              container monitor {
8392                description8497                description
8393                  "Assign the monitor interface for g.8032 ring port0";8498                  "Assign the monitor interface for g.8032 ring port0";
8394                leaf interface {8499                leaf interface {
8395                  type xr:Interface-name;8500                  type xr:Interface-name;
8396                  description8501                  description
8397                    "Assign the monitor interface";8502                    "Assign the monitor interface";
8398                }8503                }
8399              }8504              }
8400            }8505            }
8401          }8506          }
8402          container port1 {8507          container port1 {
8403            description8508            description
8404              "Port1 of the local node connected to G.8032 ring";8509              "Port1 of the local node connected to G.8032 ring";
8405            list interface {8510            list interface {
8406              key "interface-name";8511              key "interface-name";
8407              description8512              description
8408                "Assign port1 interface";8513                "Assign port1 interface";
8409              leaf interface-name {8514              leaf interface-name {
8410                type xr:Interface-name;8515                type xr:Interface-name;
8411                description8516                description
8412                  "Assign port1 interface";8517                  "Assign port1 interface";
8413              }8518              }
8414              container monitor {8519              container monitor {
8415                description8520                description
8416                  "Assign the monitor interface for g.8032 ring port1";8521                  "Assign the monitor interface for g.8032 ring port1";
8417                leaf interface {8522                leaf interface {
8418                  type xr:Interface-name;8523                  type xr:Interface-name;
8419                  description8524                  description
8420                    "Assign the monitor interface";8525                    "Assign the monitor interface";
8421                }8526                }
8422              }8527              }
8423            }8528            }
8424            container none {8529            container none {
8425              presence "Indicates a none node is configured.";8530              presence "Indicates a none node is configured.";
8426              description8531              description
8427                "Assign port1 as none to enable g.8032 open-ring";8532                "Assign port1 as none to enable g.8032 open-ring";
8428            }8533            }
8429            container virtual {8534            container virtual {
8430              presence "Indicates a virtual node is configured.";8535              presence "Indicates a virtual node is configured.";
8431              description8536              description
8432                "Assign port1 as virtual to enable g.8032 sub-ring";8537                "Assign port1 as virtual to enable g.8032 sub-ring";
8433            }8538            }
8434          }8539          }
8435          container open-ring {8540          container open-ring {
8436            presence "Indicates a open-ring node is configured.";8541            presence "Indicates a open-ring node is configured.";
8437            description8542            description
8438              "Specify the g.8032 ring as open ring";8543              "Specify the g.8032 ring as open ring";
8439          }8544          }
8440          container exclusion-list {8545          container exclusion-list {
8441            description8546            description
8442              "Specifiy exclusion list not protected by ERP";8547              "Specifiy exclusion list not protected by ERP";
8443            leaf vlan-ids {8548            leaf vlan-ids {
8444              type xr:Cisco-ios-xr-string {8549              type xr:Cisco-ios-xr-string {
8445                length "1..800" {8550                length "1..800" {
8446                  description8551                  description
8447                    "List of VLAN IDs in the form a-b,c,d,e-f,g,untagged";8552                    "List of VLAN IDs in the form a-b,c,d,e-f,g,untagged";
8448                }8553                }
8449              }8554              }
8450              description8555              description
8451                "Assign list of VLANs to the exclusion list";8556                "Assign list of VLANs to the exclusion list";
8452            }8557            }
8453          }8558          }
8454          container instances {8559          container instances {
8455            description8560            description
8456              "Configure the g.8032 ethernet ring instance";8561              "Configure the g.8032 ethernet ring instance";
8457            list instance {8562            list instance {
8458              key "instance-id";8563              key "instance-id";
8459              description8564              description
8460                "Configure the g.8032 ethernet ring instance";8565                "Configure the g.8032 ethernet ring instance";
8461              leaf instance-id {8566              leaf instance-id {
8462                type uint32 {8567                type uint32 {
8463                  range "1..2" {8568                  range "1..2" {
8464                    description8569                    description
8465                      "Instance number";8570                      "Instance number";
8466                  }8571                  }
8467                }8572                }
8468                description8573                description
8469                  "Configure the g.8032 ethernet ring instance";8574                  "Configure the g.8032 ethernet ring instance";
8470              }8575              }
8471              leaf description {8576              leaf description {
8472                type string {8577                type string {
8473                  length "1..32" {8578                  length "1..32" {
8474                    description8579                    description
8475                      "Description for the instance";8580                      "Description for the instance";
8476                  }8581                  }
8477                }8582                }
8478                description8583                description
8479                  "Description for g.8032 ethernet ring instance";8584                  "Description for g.8032 ethernet ring instance";
8480              }8585              }
8481              leaf profile {8586              leaf profile {
8482                type xr:Cisco-ios-xr-string {8587                type xr:Cisco-ios-xr-string {
8483                  length "1..32" {8588                  length "1..32" {
8484                    description8589                    description
8485                      "Ethernet ring profile name";8590                      "Ethernet ring profile name";
8486                  }8591                  }
8487                }8592                }
8488                description8593                description
8489                  "Specify associated g.8032 ethernet ring profile";8594                  "Specify associated g.8032 ethernet ring profile";
8490              }8595              }
8491              container rpl {8596              container rpl {
8492                description8597                description
8493                  "Specify RPL owner, neighbor or next-neighbor";8598                  "Specify RPL owner, neighbor or next-neighbor";
8494                container port0 {8599                container port0 {
8495                  presence "Indicates a port0 node is configured.";8600                  presence "Indicates a port0 node is configured.";
8496                  description8601                  description
8497                    "Assign port0 as RPL owner, neighbor or next-neighbor";8602                    "Assign port0 as RPL owner, neighbor or next-neighbor";
8498                  container owner {8603                  container owner {
8499                    must "not(../neighbor or ../next-neighbor)";8604                    must "not(../neighbor or ../next-neighbor)";
8500                    presence "Indicates a owner node is configured.";8605                    presence "Indicates a owner node is configured.";
8501                    description8606                    description
8502                      "RPL owner";8607                      "RPL owner";
8503                  }8608                  }
8504                  container neighbor {8609                  container neighbor {
8505                    must "not(../owner or ../next-neighbor)";8610                    must "not(../owner or ../next-neighbor)";
8506                    presence "Indicates a neighbor node is configured.";8611                    presence "Indicates a neighbor node is configured.";
8507                    description8612                    description
8508                      "RPL neighbor";8613                      "RPL neighbor";
8509                  }8614                  }
8510                  container next-neighbor {8615                  container next-neighbor {
8511                    must "not(../owner or ../neighbor)";8616                    must "not(../owner or ../neighbor)";
8512                    presence "Indicates a next-neighbor node is configured.";8617                    presence "Indicates a next-neighbor node is configured.";
8513                    description8618                    description
8514                      "RPL next neighbor";8619                      "RPL next neighbor";
8515                  }8620                  }
8516                }8621                }
8517                container port1 {8622                container port1 {
8518                  presence "Indicates a port1 node is configured.";8623                  presence "Indicates a port1 node is configured.";
8519                  description8624                  description
8520                    "Assign port1 as RPL owner, neighbor or next-neighbor";8625                    "Assign port1 as RPL owner, neighbor or next-neighbor";
8521                  container owner {8626                  container owner {
8522                    must "not(../neighbor or ../next-neighbor)";8627                    must "not(../neighbor or ../next-neighbor)";
8523                    presence "Indicates a owner node is configured.";8628                    presence "Indicates a owner node is configured.";
8524                    description8629                    description
8525                      "RPL owner";8630                      "RPL owner";
8526                  }8631                  }
8527                  container neighbor {8632                  container neighbor {
8528                    must "not(../owner or ../next-neighbor)";8633                    must "not(../owner or ../next-neighbor)";
8529                    presence "Indicates a neighbor node is configured.";8634                    presence "Indicates a neighbor node is configured.";
8530                    description8635                    description
8531                      "RPL neighbor";8636                      "RPL neighbor";
8532                  }8637                  }
8533                  container next-neighbor {8638                  container next-neighbor {
8534                    must "not(../owner or ../neighbor)";8639                    must "not(../owner or ../neighbor)";
8535                    presence "Indicates a next-neighbor node is configured.";8640                    presence "Indicates a next-neighbor node is configured.";
8536                    description8641                    description
8537                      "RPL next neighbor";8642                      "RPL next neighbor";
8538                  }8643                  }
8539                }8644                }
8540              }8645              }
8541              container inclusion-list {8646              container inclusion-list {
8542                description8647                description
8543                  "Specifiy inclusion list protected by ERP";8648                  "Specifiy inclusion list protected by ERP";
8544                leaf vlan-ids {8649                leaf vlan-ids {
8545                  type string {8650                  type string {
8546                    length "1..800" {8651                    length "1..800" {
8547                      description8652                      description
8548                        "List of VLAN IDs in the form a-b,c,d,e-f,g,untagged";8653                        "List of VLAN IDs in the form a-b,c,d,e-f,g,untagged";
8549                    }8654                    }
8550                  }8655                  }
8551                  description8656                  description
8552                    "Associates a set of VLAN IDs with the current instance";8657                    "Associates a set of VLAN IDs with the current instance";
8553                }8658                }
8554              }8659              }
8555              container aps-channel {8660              container aps-channel {
8556                presence "Indicates a aps-channel node is configured.";8661                presence "Indicates a aps-channel node is configured.";
8557                description8662                description
8558                  "Configure g.8032 instance aps-channel";8663                  "Configure g.8032 instance aps-channel";
8559                leaf level {8664                leaf level {
8560                  type uint32 {8665                  type uint32 {
8561                    range "0..7" {8666                    range "0..7" {
8562                      description8667                      description
8563                        "APS message level";8668                        "APS message level";
8564                    }8669                    }
8565                  }8670                  }
8566                  description8671                  description
8567                    "Specify the aps message level";8672                    "Specify the aps message level";
8568                }8673                }
8569                container port0 {8674                container port0 {
8570                  description8675                  description
8571                    "Config g.8032 aps-channel info associated to port0";8676                    "Config g.8032 aps-channel info associated to port0";
8572                  leaf interface {8677                  leaf interface {
8573                    type xr:Interface-name;8678                    type xr:Interface-name;
8574                    description8679                    description
8575                      "Assign interface associated to port0";8680                      "Assign interface associated to port0";
8576                  }8681                  }
8577                }8682                }
8578                container port1 {8683                container port1 {
8579                  description8684                  description
8580                    "Config g.8032 aps-channel info associated to port1";8685                    "Config g.8032 aps-channel info associated to port1";
8581                  leaf interface {8686                  leaf interface {
8582                    type xr:Interface-name;8687                    type xr:Interface-name;
8583                    must8688                    must
8584                      "not(../bridge-domain or ../xconnect8689                      "not(../bridge-domain or ../xconnect
8585                       or ../none)";8690                       or ../none)";
8586                    description8691                    description
8587                      "Assign interface associated to port1";8692                      "Assign interface associated to port1";
8588                  }8693                  }
8589                  leaf bridge-domain {8694                  leaf bridge-domain {
8590                    type xr:Cisco-ios-xr-string {8695                    type xr:Cisco-ios-xr-string {
8591                      length "1..27" {8696                      length "1..27" {
8592                        description8697                        description
8593                          "Name of the bridge domain";8698                          "Name of the bridge domain";
8594                      }8699                      }
8595                    }8700                    }
8596                    must8701                    must
8597                      "not(../interface or ../xconnect8702                      "not(../interface or ../xconnect
8598                       or ../none)";8703                       or ../none)";
8599                    description8704                    description
8600                      "Specify VPLS domain where virtual channel is connected";8705                      "Specify VPLS domain where virtual channel is connected";
8601                  }8706                  }
8602                  leaf xconnect {8707                  leaf xconnect {
8603                    type xr:Cisco-ios-xr-string {8708                    type xr:Cisco-ios-xr-string {
8604                      length "1..38" {8709                      length "1..38" {
8605                        description8710                        description
8606                          "Name of the xconnect";8711                          "Name of the xconnect";
8607                      }8712                      }
8608                    }8713                    }
8609                    must8714                    must
8610                      "not(../interface or ../bridge-domain8715                      "not(../interface or ../bridge-domain
8611                       or ../none)";8716                       or ../none)";
8612                    description8717                    description
8613                      "Specify VPWS xconnect where virtual channel is connected";8718                      "Specify VPWS xconnect where virtual channel is connected";
8614                  }8719                  }
8615                  container none {8720                  container none {
8616                    must8721                    must
8617                      "not(../interface or ../bridge-domain8722                      "not(../interface or ../bridge-domain
8618                       or ../xconnect)";8723                       or ../xconnect)";
8619                    presence "Indicates a none node is configured.";8724                    presence "Indicates a none node is configured.";
8620                    description8725                    description
8621                      "Specify APS channel port1 as none";8726                      "Specify APS channel port1 as none";
8622                  }8727                  }
8623                }8728                }
8624              }8729              }
8625            }8730            }
8626          }8731          }
8627        }8732        }
8628      }8733      }
8629    }8734    }
8630    container flexible-xconnect-service {8735    container flexible-xconnect-service {
8631      description8736      description
8632        "Configure flexible-xconnect-service";8737        "Configure flexible-xconnect-service";
8633      container vlan-unawares {8738      container vlan-unawares {
8634        description8739        description
8635          "Configure in vlan-unaware mode";8740          "Configure in vlan-unaware mode";
8636        list vlan-unaware {8741        list vlan-unaware {
8637          key "service-name";8742          key "service-name";
8638          description8743          description
8639            "Configure in vlan-unaware mode";8744            "Configure in vlan-unaware mode";
8640          leaf service-name {8745          leaf service-name {
8641            type xr:Cisco-ios-xr-string {8746            type xr:Cisco-ios-xr-string {
8642              length "1..23" {8747              length "1..23" {
8643                description8748                description
8644                  "Name of the flexible-xconnect-service";8749                  "Name of the flexible-xconnect-service";
8645              }8750              }
8646            }8751            }
8647            description8752            description
8648              "Configure in vlan-unaware mode";8753              "Configure in vlan-unaware mode";
8649          }8754          }
8650          container interfaces {8755          container interfaces {
8651            description8756            description
8652              "Specify the attachment circuit ";8757              "Specify the attachment circuit ";
8653            list interface {8758            list interface {
8654              key "interface-name";8759              key "interface-name";
8655              description8760              description
8656                "Specify sub-interface name to attach to flexible xconnect service";8761                "Specify sub-interface name to attach to flexible xconnect service";
8657              leaf interface-name {8762              leaf interface-name {
8658                type xr:Interface-name;8763                type xr:Interface-name;
8659                description8764                description
8660                  "Specify sub-interface name to attach to flexible xconnect service";8765                  "Specify sub-interface name to attach to flexible xconnect service";
8661              }8766              }
8662            }8767            }
8663          }8768          }
8664          container neighbor {8769          container neighbor {
8665            description8770            description
8666              "Specify the peer to cross connect";8771              "Specify the peer to cross connect";
8667            container evpn {8772            container evpn {
8668              description8773              description
8669                "Specify the Ethernet VPN";8774                "Specify the Ethernet VPN";
8670              container evis {8775              container evis {
8671                description8776                description
8672                  "Ethernet VPN Identifier";8777                  "Ethernet VPN Identifier";
8673                list evi {8778                list evi {
8674                  key "vpn-id remote-ac-id";8779                  key "vpn-id remote-ac-id";
8675                  description8780                  description
8676                    "Ethernet VPN Identifier";8781                    "Ethernet VPN Identifier";
8677                  leaf vpn-id {8782                  leaf vpn-id {
8678                    type uint32 {8783                    type uint32 {
8679                      range "1..65534" {8784                      range "1..65534" {
8680                        description8785                        description
8681                          "Ethernet VPN ID to set";8786                          "Ethernet VPN ID to set";
8682                      }8787                      }
8683                    }8788                    }
8684                    description8789                    description
8685                      "Ethernet VPN Identifier";8790                      "Ethernet VPN Identifier";
8686                  }8791                  }
8687                  leaf remote-ac-id {8792                  leaf remote-ac-id {
8688                    type uint32 {8793                    type uint32 {
8689                      range "1..16777215" {8794                      range "1..16777215" {
8690                        description8795                        description
8691                          "Remote ac-id (hex or decimal format)";8796                          "Remote ac-id (hex or decimal format)";
8692                      }8797                      }
8693                    }8798                    }
8694                    description8799                    description
8695                      "Specify remote attachment circuit identifier";8800                      "Specify remote attachment circuit identifier";
8696                  }8801                  }
8697                }8802                }
8698              }8803              }
8699            }8804            }
8700          }8805          }
8701        }8806        }
8702      }8807      }
8703      container vlan-aware {8808      container vlan-aware {
8704        description8809        description
8705          "Configure in vlan-aware mode";8810          "Configure in vlan-aware mode";
8706        container evis {8811        container evis {
8707          description8812          description
8708            "Ethernet VPN Identifier";8813            "Ethernet VPN Identifier";
8709          list evi {8814          list evi {
8710            key "vpn-id";8815            key "vpn-id";
8711            description8816            description
8712              "Ethernet VPN Identifier";8817              "Ethernet VPN Identifier";
8713            leaf vpn-id {8818            leaf vpn-id {
8714              type uint32 {8819              type uint32 {
8715                range "1..65534" {8820                range "1..65534" {
8716                  description8821                  description
8717                    "Ethernet VPN ID to set";8822                    "Ethernet VPN ID to set";
8718                }8823                }
8719              }8824              }
8720              description8825              description
8721                "Ethernet VPN Identifier";8826                "Ethernet VPN Identifier";
8722            }8827            }
8723            container interfaces {8828            container interfaces {
8724              description8829              description
8725                "Specify the attachment circuit ";8830                "Specify the attachment circuit ";
8726              list interface {8831              list interface {
8727                key "interface-name";8832                key "interface-name";
8728                description8833                description
8729                  "Specify sub-interface name to attach to flexible xconnect service";8834                  "Specify sub-interface name to attach to flexible xconnect service";
8730                leaf interface-name {8835                leaf interface-name {
8731                  type xr:Interface-name;8836                  type xr:Interface-name;
8732                  description8837                  description
8733                    "Specify sub-interface name to attach to flexible xconnect service";8838                    "Specify sub-interface name to attach to flexible xconnect service";
8734                }8839                }
8735              }8840              }
8736            }8841            }
8737          }8842          }
8738        }8843        }
8739      }8844      }
8740    }8845    }
8741    container vlan-switches {8846    container vlan-switches {
8742      description8847      description
8743        "Configure a VLAN Switch";8848        "Configure a VLAN Switch";
8744      list vlan-switch {8849      list vlan-switch {
8745        key "vlan-switch-name";8850        key "vlan-switch-name";
8746        description8851        description
8747          "Configure a VLAN Switch";8852          "Configure a VLAN Switch";
8748        leaf vlan-switch-name {8853        leaf vlan-switch-name {
8749          type xr:Cisco-ios-xr-string {8854          type xr:Cisco-ios-xr-string {
8750            length "1..32" {8855            length "1..32" {
8751              description8856              description
8752                "Name of the VLAN Switch";8857                "Name of the VLAN Switch";
8753            }8858            }
8754          }8859          }
8755          description8860          description
8756            "Configure a VLAN Switch";8861            "Configure a VLAN Switch";
8757        }8862        }
8758        container vlan {8863        container vlan {
8759          description8864          description
8760            "Configure VLAN IDs";8865            "Configure VLAN IDs";
8761          leaf vlan-id-range1-start {8866          leaf vlan-id-range1-start {
8762            type uint32 {8867            type uint32 {
8763              range "1..4094" {8868              range "1..4094" {
8764                description8869                description
8765                  "Start of VLAN ID range";8870                  "Start of VLAN ID range";
8766              }8871              }
8767            }8872            }
8768            description8873            description
8769              "Start of VLAN ID range";8874              "Start of VLAN ID range";
8770          }8875          }
8771          leaf vlan-id-range1-end {8876          leaf vlan-id-range1-end {
8772            type uint32 {8877            type uint32 {
8773              range "1..4094" {8878              range "1..4094" {
8774                description8879                description
8775                  "End of VLAN ID range";8880                  "End of VLAN ID range";
8776              }8881              }
8777            }8882            }
8778            must "../vlan-id-range1-start";8883            must "../vlan-id-range1-start";
8779            description8884            description
8780              "End of VLAN ID range";8885              "End of VLAN ID range";
8781          }8886          }
8782          leaf vlan-id-range2-start {8887          leaf vlan-id-range2-start {
8783            type uint32 {8888            type uint32 {
8784              range "1..4094" {8889              range "1..4094" {
8785                description8890                description
8786                  "Start of VLAN ID range";8891                  "Start of VLAN ID range";
8787              }8892              }
8788            }8893            }
8789            must "../vlan-id-range1-start";8894            must "../vlan-id-range1-start";
8790            description8895            description
8791              "Start of VLAN ID range";8896              "Start of VLAN ID range";
8792          }8897          }
8793          leaf vlan-id-range2-end {8898          leaf vlan-id-range2-end {
8794            type uint32 {8899            type uint32 {
8795              range "1..4094" {8900              range "1..4094" {
8796                description8901                description
8797                  "End of VLAN ID range";8902                  "End of VLAN ID range";
8798              }8903              }
8799            }8904            }
8800            must "../vlan-id-range2-start";8905            must "../vlan-id-range2-start";
8801            description8906            description
8802              "End of VLAN ID range";8907              "End of VLAN ID range";
8803          }8908          }
8804          leaf vlan-id-range3-start {8909          leaf vlan-id-range3-start {
8805            type uint32 {8910            type uint32 {
8806              range "1..4094" {8911              range "1..4094" {
8807                description8912                description
8808                  "Start of VLAN ID range";8913                  "Start of VLAN ID range";
8809              }8914              }
8810            }8915            }
8811            must "../vlan-id-range2-start";8916            must "../vlan-id-range2-start";
8812            description8917            description
8813              "Start of VLAN ID range";8918              "Start of VLAN ID range";
8814          }8919          }
8815          leaf vlan-id-range3-end {8920          leaf vlan-id-range3-end {
8816            type uint32 {8921            type uint32 {
8817              range "1..4094" {8922              range "1..4094" {
8818                description8923                description
8819                  "End of VLAN ID range";8924                  "End of VLAN ID range";
8820              }8925              }
8821            }8926            }
8822            must "../vlan-id-range3-start";8927            must "../vlan-id-range3-start";
8823            description8928            description
8824              "End of VLAN ID range";8929              "End of VLAN ID range";
8825          }8930          }
8826          leaf vlan-id-range4-start {8931          leaf vlan-id-range4-start {
8827            type uint32 {8932            type uint32 {
8828              range "1..4094" {8933              range "1..4094" {
8829                description8934                description
8830                  "Start of VLAN ID range";8935                  "Start of VLAN ID range";
8831              }8936              }
8832            }8937            }
8833            must "../vlan-id-range3-start";8938            must "../vlan-id-range3-start";
8834            description8939            description
8835              "Start of VLAN ID range";8940              "Start of VLAN ID range";
8836          }8941          }
8837          leaf vlan-id-range4-end {8942          leaf vlan-id-range4-end {
8838            type uint32 {8943            type uint32 {
8839              range "1..4094" {8944              range "1..4094" {
8840                description8945                description
8841                  "End of VLAN ID range";8946                  "End of VLAN ID range";
8842              }8947              }
8843            }8948            }
8844            must "../vlan-id-range4-start";8949            must "../vlan-id-range4-start";
8845            description8950            description
8846              "End of VLAN ID range";8951              "End of VLAN ID range";
8847          }8952          }
8848          leaf vlan-id-range5-start {8953          leaf vlan-id-range5-start {
8849            type uint32 {8954            type uint32 {
8850              range "1..4094" {8955              range "1..4094" {
8851                description8956                description
8852                  "Start of VLAN ID range";8957                  "Start of VLAN ID range";
8853              }8958              }
8854            }8959            }
8855            must "../vlan-id-range4-start";8960            must "../vlan-id-range4-start";
8856            description8961            description
8857              "Start of VLAN ID range";8962              "Start of VLAN ID range";
8858          }8963          }
8859          leaf vlan-id-range5-end {8964          leaf vlan-id-range5-end {
8860            type uint32 {8965            type uint32 {
8861              range "1..4094" {8966              range "1..4094" {
8862                description8967                description
8863                  "End of VLAN ID range";8968                  "End of VLAN ID range";
8864              }8969              }
8865            }8970            }
8866            must "../vlan-id-range5-start";8971            must "../vlan-id-range5-start";
8867            description8972            description
8868              "End of VLAN ID range";8973              "End of VLAN ID range";
8869          }8974          }
8870          leaf vlan-id-range6-start {8975          leaf vlan-id-range6-start {
8871            type uint32 {8976            type uint32 {
8872              range "1..4094" {8977              range "1..4094" {
8873                description8978                description
8874                  "Start of VLAN ID range";8979                  "Start of VLAN ID range";
8875              }8980              }
8876            }8981            }
8877            must "../vlan-id-range5-start";8982            must "../vlan-id-range5-start";
8878            description8983            description
8879              "Start of VLAN ID range";8984              "Start of VLAN ID range";
8880          }8985          }
8881          leaf vlan-id-range6-end {8986          leaf vlan-id-range6-end {
8882            type uint32 {8987            type uint32 {
8883              range "1..4094" {8988              range "1..4094" {
8884                description8989                description
8885                  "End of VLAN ID range";8990                  "End of VLAN ID range";
8886              }8991              }
8887            }8992            }
8888            must "../vlan-id-range6-start";8993            must "../vlan-id-range6-start";
8889            description8994            description
8890              "End of VLAN ID range";8995              "End of VLAN ID range";
8891          }8996          }
8892          leaf vlan-id-range7-start {8997          leaf vlan-id-range7-start {
8893            type uint32 {8998            type uint32 {
8894              range "1..4094" {8999              range "1..4094" {
8895                description9000                description
8896                  "Start of VLAN ID range";9001                  "Start of VLAN ID range";
8897              }9002              }
8898            }9003            }
8899            must "../vlan-id-range6-start";9004            must "../vlan-id-range6-start";
8900            description9005            description
8901              "Start of VLAN ID range";9006              "Start of VLAN ID range";
8902          }9007          }
8903          leaf vlan-id-range7-end {9008          leaf vlan-id-range7-end {
8904            type uint32 {9009            type uint32 {
8905              range "1..4094" {9010              range "1..4094" {
8906                description9011                description
8907                  "End of VLAN ID range";9012                  "End of VLAN ID range";
8908              }9013              }
8909            }9014            }
8910            must "../vlan-id-range7-start";9015            must "../vlan-id-range7-start";
8911            description9016            description
8912              "End of VLAN ID range";9017              "End of VLAN ID range";
8913          }9018          }
8914          leaf vlan-id-range8-start {9019          leaf vlan-id-range8-start {
8915            type uint32 {9020            type uint32 {
8916              range "1..4094" {9021              range "1..4094" {
8917                description9022                description
8918                  "Start of VLAN ID range";9023                  "Start of VLAN ID range";
8919              }9024              }
8920            }9025            }
8921            must "../vlan-id-range7-start";9026            must "../vlan-id-range7-start";
8922            description9027            description
8923              "Start of VLAN ID range";9028              "Start of VLAN ID range";
8924          }9029          }
8925          leaf vlan-id-range8-end {9030          leaf vlan-id-range8-end {
8926            type uint32 {9031            type uint32 {
8927              range "1..4094" {9032              range "1..4094" {
8928                description9033                description
8929                  "End of VLAN ID range";9034                  "End of VLAN ID range";
8930              }9035              }
8931            }9036            }
8932            must "../vlan-id-range8-start";9037            must "../vlan-id-range8-start";
8933            description9038            description
8934              "End of VLAN ID range";9039              "End of VLAN ID range";
8935          }9040          }
8936          leaf vlan-id-range9-start {9041          leaf vlan-id-range9-start {
8937            type uint32 {9042            type uint32 {
8938              range "1..4094" {9043              range "1..4094" {
8939                description9044                description
8940                  "Start of VLAN ID range";9045                  "Start of VLAN ID range";
8941              }9046              }
8942            }9047            }
8943            must "../vlan-id-range8-start";9048            must "../vlan-id-range8-start";
8944            description9049            description
8945              "Start of VLAN ID range";9050              "Start of VLAN ID range";
8946          }9051          }
8947          leaf vlan-id-range9-end {9052          leaf vlan-id-range9-end {
8948            type uint32 {9053            type uint32 {
8949              range "1..4094" {9054              range "1..4094" {
8950                description9055                description
8951                  "End of VLAN ID range";9056                  "End of VLAN ID range";
8952              }9057              }
8953            }9058            }
8954            must "../vlan-id-range9-start";9059            must "../vlan-id-range9-start";
8955            description9060            description
8956              "End of VLAN ID range";9061              "End of VLAN ID range";
8957          }9062          }
8958        }9063        }
8959        container interfaces {9064        container interfaces {
8960          description9065          description
8961            "Assign VSP interface to VLAN Switch";9066            "Assign VSP interface to VLAN Switch";
8962          list interface {9067          list interface {
8963            key "interface-name";9068            key "interface-name";
8964            description9069            description
8965              "Specify interface name";9070              "Specify interface name";
8966            leaf interface-name {9071            leaf interface-name {
8967              type xr:Interface-name;9072              type xr:Interface-name;
8968              description9073              description
8969                "Specify interface name";9074                "Specify interface name";
8970            }9075            }
8971          }9076          }
8972        }9077        }
8973        container routed {9078        container routed {
8974          description9079          description
8975            "VLAN Switch L3 interfaces";9080            "VLAN Switch L3 interfaces";
8976          container interface {9081          container interface {
8977            description9082            description
8978              "Assign L3 interfaces to VLAN Switch";9083              "Assign L3 interfaces to VLAN Switch";
8979            container bvi {9084            container bvi {
8980              description9085              description
8981                "Assign BVI interfaces to VLAN Switch";9086                "Assign BVI interfaces to VLAN Switch";
8982              leaf interface-number-range1-start {9087              leaf interface-number-range1-start {
8983                type uint32 {9088                type uint32 {
8984                  range "1..4294967295" {9089                  range "1..4294967295" {
8985                    description9090                    description
8986                      "Start of interface number range";9091                      "Start of interface number range";
8987                  }9092                  }
8988                }9093                }
8989                description9094                description
8990                  "Start of interface number range";9095                  "Start of interface number range";
8991              }9096              }
8992              leaf interface-number-range1-end {9097              leaf interface-number-range1-end {
8993                type uint32 {9098                type uint32 {
8994                  range "1..4294967295" {9099                  range "1..4294967295" {
8995                    description9100                    description
8996                      "End of interface number range";9101                      "End of interface number range";
8997                  }9102                  }
8998                }9103                }
8999                must "../interface-number-range1-start";9104                must "../interface-number-range1-start";
9000                description9105                description
9001                  "End of interface number range";9106                  "End of interface number range";
9002              }9107              }
9003              leaf interface-number-range2-start {9108              leaf interface-number-range2-start {
9004                type uint32 {9109                type uint32 {
9005                  range "1..4294967295" {9110                  range "1..4294967295" {
9006                    description9111                    description
9007                      "Start of interface number range";9112                      "Start of interface number range";
9008                  }9113                  }
9009                }9114                }
9010                must "../interface-number-range1-start";9115                must "../interface-number-range1-start";
9011                description9116                description
9012                  "Start of interface number range";9117                  "Start of interface number range";
9013              }9118              }
9014              leaf interface-number-range2-end {9119              leaf interface-number-range2-end {
9015                type uint32 {9120                type uint32 {
9016                  range "1..4294967295" {9121                  range "1..4294967295" {
9017                    description9122                    description
9018                      "End of interface number range";9123                      "End of interface number range";
9019                  }9124                  }
9020                }9125                }
9021                must "../interface-number-range2-start";9126                must "../interface-number-range2-start";
9022                description9127                description
9023                  "End of interface number range";9128                  "End of interface number range";
9024              }9129              }
9025              leaf interface-number-range3-start {9130              leaf interface-number-range3-start {
9026                type uint32 {9131                type uint32 {
9027                  range "1..4294967295" {9132                  range "1..4294967295" {
9028                    description9133                    description
9029                      "Start of interface number range";9134                      "Start of interface number range";
9030                  }9135                  }
9031                }9136                }
9032                must "../interface-number-range2-start";9137                must "../interface-number-range2-start";
9033                description9138                description
9034                  "Start of interface number range";9139                  "Start of interface number range";
9035              }9140              }
9036              leaf interface-number-range3-end {9141              leaf interface-number-range3-end {
9037                type uint32 {9142                type uint32 {
9038                  range "1..4294967295" {9143                  range "1..4294967295" {
9039                    description9144                    description
9040                      "End of interface number range";9145                      "End of interface number range";
9041                  }9146                  }
9042                }9147                }
9043                must "../interface-number-range3-start";9148                must "../interface-number-range3-start";
9044                description9149                description
9045                  "End of interface number range";9150                  "End of interface number range";
9046              }9151              }
9047              leaf interface-number-range4-start {9152              leaf interface-number-range4-start {
9048                type uint32 {9153                type uint32 {
9049                  range "1..4294967295" {9154                  range "1..4294967295" {
9050                    description9155                    description
9051                      "Start of interface number range";9156                      "Start of interface number range";
9052                  }9157                  }
9053                }9158                }
9054                must "../interface-number-range3-start";9159                must "../interface-number-range3-start";
9055                description9160                description
9056                  "Start of interface number range";9161                  "Start of interface number range";
9057              }9162              }
9058              leaf interface-number-range4-end {9163              leaf interface-number-range4-end {
9059                type uint32 {9164                type uint32 {
9060                  range "1..4294967295" {9165                  range "1..4294967295" {
9061                    description9166                    description
9062                      "End of interface number range";9167                      "End of interface number range";
9063                  }9168                  }
9064                }9169                }
9065                must "../interface-number-range4-start";9170                must "../interface-number-range4-start";
9066                description9171                description
9067                  "End of interface number range";9172                  "End of interface number range";
9068              }9173              }
9069              leaf interface-number-range5-start {9174              leaf interface-number-range5-start {
9070                type uint32 {9175                type uint32 {
9071                  range "1..4294967295" {9176                  range "1..4294967295" {
9072                    description9177                    description
9073                      "Start of interface number range";9178                      "Start of interface number range";
9074                  }9179                  }
9075                }9180                }
9076                must "../interface-number-range4-start";9181                must "../interface-number-range4-start";
9077                description9182                description
9078                  "Start of interface number range";9183                  "Start of interface number range";
9079              }9184              }
9080              leaf interface-number-range5-end {9185              leaf interface-number-range5-end {
9081                type uint32 {9186                type uint32 {
9082                  range "1..4294967295" {9187                  range "1..4294967295" {
9083                    description9188                    description
9084                      "End of interface number range";9189                      "End of interface number range";
9085                  }9190                  }
9086                }9191                }
9087                must "../interface-number-range4-start";9192                must "../interface-number-range4-start";
9088                description9193                description
9089                  "End of interface number range";9194                  "End of interface number range";
9090              }9195              }
9091              leaf interface-number-range6-start {9196              leaf interface-number-range6-start {
9092                type uint32 {9197                type uint32 {
9093                  range "1..4294967295" {9198                  range "1..4294967295" {
9094                    description9199                    description
9095                      "Start of interface number range";9200                      "Start of interface number range";
9096                  }9201                  }
9097                }9202                }
9098                must "../interface-number-range5-start";9203                must "../interface-number-range5-start";
9099                description9204                description
9100                  "Start of interface number range";9205                  "Start of interface number range";
9101              }9206              }
9102              leaf interface-number-range6-end {9207              leaf interface-number-range6-end {
9103                type uint32 {9208                type uint32 {
9104                  range "1..4294967295" {9209                  range "1..4294967295" {
9105                    description9210                    description
9106                      "End of interface number range";9211                      "End of interface number range";
9107                  }9212                  }
9108                }9213                }
9109                must "../interface-number-range6-start";9214                must "../interface-number-range6-start";
9110                description9215                description
9111                  "End of interface number range";9216                  "End of interface number range";
9112              }9217              }
9113              leaf interface-number-range7-start {9218              leaf interface-number-range7-start {
9114                type uint32 {9219                type uint32 {
9115                  range "1..4294967295" {9220                  range "1..4294967295" {
9116                    description9221                    description
9117                      "Start of interface number range";9222                      "Start of interface number range";
9118                  }9223                  }
9119                }9224                }
9120                must "../interface-number-range6-start";9225                must "../interface-number-range6-start";
9121                description9226                description
9122                  "Start of interface number range";9227                  "Start of interface number range";
9123              }9228              }
9124              leaf interface-number-range7-end {9229              leaf interface-number-range7-end {
9125                type uint32 {9230                type uint32 {
9126                  range "1..4294967295" {9231                  range "1..4294967295" {
9127                    description9232                    description
9128                      "End of interface number range";9233                      "End of interface number range";
9129                  }9234                  }
9130                }9235                }
9131                must "../interface-number-range7-start";9236                must "../interface-number-range7-start";
9132                description9237                description
9133                  "End of interface number range";9238                  "End of interface number range";
9134              }9239              }
9135              leaf interface-number-range8-start {9240              leaf interface-number-range8-start {
9136                type uint32 {9241                type uint32 {
9137                  range "1..4294967295" {9242                  range "1..4294967295" {
9138                    description9243                    description
9139                      "Start of interface number range";9244                      "Start of interface number range";
9140                  }9245                  }
9141                }9246                }
9142                must "../interface-number-range7-start";9247                must "../interface-number-range7-start";
9143                description9248                description
9144                  "Start of interface number range";9249                  "Start of interface number range";
9145              }9250              }
9146              leaf interface-number-range8-end {9251              leaf interface-number-range8-end {
9147                type uint32 {9252                type uint32 {
9148                  range "1..4294967295" {9253                  range "1..4294967295" {
9149                    description9254                    description
9150                      "End of interface number range";9255                      "End of interface number range";
9151                  }9256                  }
9152                }9257                }
9153                must "../interface-number-range8-start";9258                must "../interface-number-range8-start";
9154                description9259                description
9155                  "End of interface number range";9260                  "End of interface number range";
9156              }9261              }
9157              leaf interface-number-range9-start {9262              leaf interface-number-range9-start {
9158                type uint32 {9263                type uint32 {
9159                  range "1..4294967295" {9264                  range "1..4294967295" {
9160                    description9265                    description
9161                      "Start of interface number range";9266                      "Start of interface number range";
9162                  }9267                  }
9163                }9268                }
9164                must "../interface-number-range8-start";9269                must "../interface-number-range8-start";
9165                description9270                description
9166                  "Start of interface number range";9271                  "Start of interface number range";
9167              }9272              }
9168              leaf interface-number-range9-end {9273              leaf interface-number-range9-end {
9169                type uint32 {9274                type uint32 {
9170                  range "1..4294967295" {9275                  range "1..4294967295" {
9171                    description9276                    description
9172                      "End of interface number range";9277                      "End of interface number range";
9173                  }9278                  }
9174                }9279                }
9175                must "../interface-number-range9-start";9280                must "../interface-number-range9-start";
9176                description9281                description
9177                  "End of interface number range";9282                  "End of interface number range";
9178              }9283              }
9179            }9284            }
9180          }9285          }
9181        }9286        }
9182        container vni {9287        container vni {
9183          description9288          description
9184            "Assign VxLAN Network Identifiers to VLAN Switch";9289            "Assign VxLAN Network Identifiers to VLAN Switch";
9185          leaf vni-range1-start {9290          leaf vni-range1-start {
9186            type uint32 {9291            type uint32 {
9187              range "1..16777215" {9292              range "1..16777215" {
9188                description9293                description
9189                  "Start of VNI range";9294                  "Start of VNI range";
9190              }9295              }
9191            }9296            }
9192            description9297            description
9193              "Start of VNI range";9298              "Start of VNI range";
9194          }9299          }
9195          leaf vni-range1-end {9300          leaf vni-range1-end {
9196            type uint32 {9301            type uint32 {
9197              range "1..16777215" {9302              range "1..16777215" {
9198                description9303                description
9199                  "End of VNI range";9304                  "End of VNI range";
9200              }9305              }
9201            }9306            }
9202            must "../vni-range1-start";9307            must "../vni-range1-start";
9203            description9308            description
9204              "End of VNI range";9309              "End of VNI range";
9205          }9310          }
9206          leaf vni-range2-start {9311          leaf vni-range2-start {
9207            type uint32 {9312            type uint32 {
9208              range "1..16777215" {9313              range "1..16777215" {
9209                description9314                description
9210                  "Start of VNI range";9315                  "Start of VNI range";
9211              }9316              }
9212            }9317            }
9213            must "../vni-range1-start";9318            must "../vni-range1-start";
9214            description9319            description
9215              "Start of VNI range";9320              "Start of VNI range";
9216          }9321          }
9217          leaf vni-range2-end {9322          leaf vni-range2-end {
9218            type uint32 {9323            type uint32 {
9219              range "1..16777215" {9324              range "1..16777215" {
9220                description9325                description
9221                  "End of VNI range";9326                  "End of VNI range";
9222              }9327              }
9223            }9328            }
9224            must "../vni-range2-start";9329            must "../vni-range2-start";
9225            description9330            description
9226              "End of VNI range";9331              "End of VNI range";
9227          }9332          }
9228          leaf vni-range3-start {9333          leaf vni-range3-start {
9229            type uint32 {9334            type uint32 {
9230              range "1..16777215" {9335              range "1..16777215" {
9231                description9336                description
9232                  "Start of VNI range";9337                  "Start of VNI range";
9233              }9338              }
9234            }9339            }
9235            must "../vni-range2-start";9340            must "../vni-range2-start";
9236            description9341            description
9237              "Start of VNI range";9342              "Start of VNI range";
9238          }9343          }
9239          leaf vni-range3-end {9344          leaf vni-range3-end {
9240            type uint32 {9345            type uint32 {
9241              range "1..16777215" {9346              range "1..16777215" {
9242                description9347                description
9243                  "End of VNI range";9348                  "End of VNI range";
9244              }9349              }
9245            }9350            }
9246            must "../vni-range3-start";9351            must "../vni-range3-start";
9247            description9352            description
9248              "End of VNI range";9353              "End of VNI range";
9249          }9354          }
9250          leaf vni-range4-start {9355          leaf vni-range4-start {
9251            type uint32 {9356            type uint32 {
9252              range "1..16777215" {9357              range "1..16777215" {
9253                description9358                description
9254                  "Start of VNI range";9359                  "Start of VNI range";
9255              }9360              }
9256            }9361            }
9257            must "../vni-range3-start";9362            must "../vni-range3-start";
9258            description9363            description
9259              "Start of VNI range";9364              "Start of VNI range";
9260          }9365          }
9261          leaf vni-range4-end {9366          leaf vni-range4-end {
9262            type uint32 {9367            type uint32 {
9263              range "1..16777215" {9368              range "1..16777215" {
9264                description9369                description
9265                  "End of VNI range";9370                  "End of VNI range";
9266              }9371              }
9267            }9372            }
9268            must "../vni-range4-start";9373            must "../vni-range4-start";
9269            description9374            description
9270              "End of VNI range";9375              "End of VNI range";
9271          }9376          }
9272          leaf vni-range5-start {9377          leaf vni-range5-start {
9273            type uint32 {9378            type uint32 {
9274              range "1..16777215" {9379              range "1..16777215" {
9275                description9380                description
9276                  "Start of VNI range";9381                  "Start of VNI range";
9277              }9382              }
9278            }9383            }
9279            must "../vni-range4-start";9384            must "../vni-range4-start";
9280            description9385            description
9281              "Start of VNI range";9386              "Start of VNI range";
9282          }9387          }
9283          leaf vni-range5-end {9388          leaf vni-range5-end {
9284            type uint32 {9389            type uint32 {
9285              range "1..16777215" {9390              range "1..16777215" {
9286                description9391                description
9287                  "End of VNI range";9392                  "End of VNI range";
9288              }9393              }
9289            }9394            }
9290            must "../vni-range5-start";9395            must "../vni-range5-start";
9291            description9396            description
9292              "End of VNI range";9397              "End of VNI range";
9293          }9398          }
9294          leaf vni-range6-start {9399          leaf vni-range6-start {
9295            type uint32 {9400            type uint32 {
9296              range "1..16777215" {9401              range "1..16777215" {
9297                description9402                description
9298                  "Start of VNI range";9403                  "Start of VNI range";
9299              }9404              }
9300            }9405            }
9301            must "../vni-range5-start";9406            must "../vni-range5-start";
9302            description9407            description
9303              "Start of VNI range";9408              "Start of VNI range";
9304          }9409          }
9305          leaf vni-range6-end {9410          leaf vni-range6-end {
9306            type uint32 {9411            type uint32 {
9307              range "1..16777215" {9412              range "1..16777215" {
9308                description9413                description
9309                  "End of VNI range";9414                  "End of VNI range";
9310              }9415              }
9311            }9416            }
9312            must "../vni-range6-start";9417            must "../vni-range6-start";
9313            description9418            description
9314              "End of VNI range";9419              "End of VNI range";
9315          }9420          }
9316          leaf vni-range7-start {9421          leaf vni-range7-start {
9317            type uint32 {9422            type uint32 {
9318              range "1..16777215" {9423              range "1..16777215" {
9319                description9424                description
9320                  "Start of VNI range";9425                  "Start of VNI range";
9321              }9426              }
9322            }9427            }
9323            must "../vni-range6-start";9428            must "../vni-range6-start";
9324            description9429            description
9325              "Start of VNI range";9430              "Start of VNI range";
9326          }9431          }
9327          leaf vni-range7-end {9432          leaf vni-range7-end {
9328            type uint32 {9433            type uint32 {
9329              range "1..16777215" {9434              range "1..16777215" {
9330                description9435                description
9331                  "End of VNI range";9436                  "End of VNI range";
9332              }9437              }
9333            }9438            }
9334            must "../vni-range7-start";9439            must "../vni-range7-start";
9335            description9440            description
9336              "End of VNI range";9441              "End of VNI range";
9337          }9442          }
9338          leaf vni-range8-start {9443          leaf vni-range8-start {
9339            type uint32 {9444            type uint32 {
9340              range "1..16777215" {9445              range "1..16777215" {
9341                description9446                description
9342                  "Start of VNI range";9447                  "Start of VNI range";
9343              }9448              }
9344            }9449            }
9345            must "../vni-range7-start";9450            must "../vni-range7-start";
9346            description9451            description
9347              "Start of VNI range";9452              "Start of VNI range";
9348          }9453          }
9349          leaf vni-range8-end {9454          leaf vni-range8-end {
9350            type uint32 {9455            type uint32 {
9351              range "1..16777215" {9456              range "1..16777215" {
9352                description9457                description
9353                  "End of VNI range";9458                  "End of VNI range";
9354              }9459              }
9355            }9460            }
9356            must "../vni-range8-start";9461            must "../vni-range8-start";
9357            description9462            description
9358              "End of VNI range";9463              "End of VNI range";
9359          }9464          }
9360          leaf vni-range9-start {9465          leaf vni-range9-start {
9361            type uint32 {9466            type uint32 {
9362              range "1..16777215" {9467              range "1..16777215" {
9363                description9468                description
9364                  "Start of VNI range";9469                  "Start of VNI range";
9365              }9470              }
9366            }9471            }
9367            must "../vni-range8-start";9472            must "../vni-range8-start";
9368            description9473            description
9369              "Start of VNI range";9474              "Start of VNI range";
9370          }9475          }
9371          leaf vni-range9-end {9476          leaf vni-range9-end {
9372            type uint32 {9477            type uint32 {
9373              range "1..16777215" {9478              range "1..16777215" {
9374                description9479                description
9375                  "End of VNI range";9480                  "End of VNI range";
9376              }9481              }
9377            }9482            }
9378            must "../vni-range9-start";9483            must "../vni-range9-start";
9379            description9484            description
9380              "End of VNI range";9485              "End of VNI range";
9381          }9486          }
9382        }9487        }
9383        container bridge-domains {9488        container bridge-domains {
9384          description9489          description
9385            "Configure bridge domain";9490            "Configure bridge domain";
9386          list bridge-domain {9491          list bridge-domain {
9387            key "bridge-domain-name";9492            key "bridge-domain-name";
9388            description9493            description
9389              "Configure bridge domain";9494              "Configure bridge domain";
9390            leaf bridge-domain-name {9495            leaf bridge-domain-name {
9391              type xr:Cisco-ios-xr-string {9496              type xr:Cisco-ios-xr-string {
9392                length "1..27" {9497                length "1..27" {
9393                  description9498                  description
9394                    "Name of the bridge domain in the following format: vlan#";9499                    "Name of the bridge domain in the following format: vlan#";
9395                }9500                }
9396                pattern "vlan[0-9]+";9501                pattern "vlan[0-9]+";
9397              }9502              }
9398              description9503              description
9399                "Configure bridge domain";9504                "Configure bridge domain";
9400            }9505            }
9401            container evis {9506            container evis {
9402              description9507              description
9403                "Ethernet VPN identifier";9508                "Ethernet VPN identifier";
9404              list evi {9509              list evi {
9405                key "vpn-id";9510                key "vpn-id";
9406                description9511                description
9407                  "Ethernet VPN identifier";9512                  "Ethernet VPN identifier";
9408                leaf vpn-id {9513                leaf vpn-id {
9409                  type uint32 {9514                  type uint32 {
9410                    range "1..65534" {9515                    range "1..65534" {
9411                      description9516                      description
9412                        "Ethernet VPN ID to set";9517                        "Ethernet VPN ID to set";
9413                    }9518                    }
9414                  }9519                  }
9415                  description9520                  description
9416                    "Ethernet VPN identifier";9521                    "Ethernet VPN identifier";
9417                }9522                }
9418              }9523              }
9419            }9524            }
9420            container vnis {9525            container vnis {
9421              description9526              description
9422                "VxLAN VPN identifier";9527                "VxLAN VPN identifier";
9423              list vni {9528              list vni {
9424                key "vni-id";9529                key "vni-id";
9425                description9530                description
9426                  "VxLAN VPN identifier";9531                  "VxLAN VPN identifier";
9427                leaf vni-id {9532                leaf vni-id {
9428                  type uint32 {9533                  type uint32 {
9429                    range "1..16777215" {9534                    range "1..16777215" {
9430                      description9535                      description
9431                        "VxLAN VPN ID to set";9536                        "VxLAN VPN ID to set";
9432                    }9537                    }
9433                  }9538                  }
9434                  description9539                  description
9435                    "VxLAN VPN identifier";9540                    "VxLAN VPN identifier";
9436                }9541                }
9437              }9542              }
9438            }9543            }
9439            container nv {9544            container nv {
9440              description9545              description
9441                "Configure nV Satellite Settings";9546                "Configure nV Satellite Settings";
9442              container satellite {9547              container satellite {
9443                presence "Indicates a satellite node is configured.";9548                presence "Indicates a satellite node is configured.";
9444                description9549                description
9445                  "Configure nV Satellite Settings";9550                  "Configure nV Satellite Settings";
9446                container offload {9551                container offload {
9447                  description9552                  description
9448                    "Hardware offloading";9553                    "Hardware offloading";
9449                  container ipv4 {9554                  container ipv4 {
9450                    description9555                    description
9451                      "IPv4";9556                      "IPv4";
9452                    container multicast {9557                    container multicast {
9453                      description9558                      description
9454                        "Multicast";9559                        "Multicast";
9455                      container enable {9560                      container enable {
9456                        presence "Indicates a enable node is configured.";9561                        presence "Indicates a enable node is configured.";
9457                        description9562                        description
9458                          "Enable IPv4 Multicast Offloading";9563                          "Enable IPv4 Multicast Offloading";
9459                      }9564                      }
9460                    }9565                    }
9461                  }9566                  }
9462                }9567                }
9463              }9568              }
9464            }9569            }
9465            container pbb {9570            container pbb {
9466              description9571              description
9467                "Configure Provider Backbone Bridge";9572                "Configure Provider Backbone Bridge";
9468              container core {9573              container core {
9469                presence "Indicates a core node is configured.";9574                presence "Indicates a core node is configured.";
9470                description9575                description
9471                  "PBB core bridge domain";9576                  "PBB core bridge domain";
9472                container evis {9577                container evis {
9473                  description9578                  description
9474                    "Ethernet VPN identifier";9579                    "Ethernet VPN identifier";
9475                  list evi {9580                  list evi {
9476                    key "vpn-id";9581                    key "vpn-id";
9477                    description9582                    description
9478                      "Ethernet VPN identifier";9583                      "Ethernet VPN identifier";
9479                    leaf vpn-id {9584                    leaf vpn-id {
9480                      type uint32 {9585                      type uint32 {
9481                        range "1..65534" {9586                        range "1..65534" {
9482                          description9587                          description
9483                            "Ethernet VPN ID to set";9588                            "Ethernet VPN ID to set";
9484                        }9589                        }
9485                      }9590                      }
9486                      description9591                      description
9487                        "Ethernet VPN identifier";9592                        "Ethernet VPN identifier";
9488                    }9593                    }
9489                  }9594                  }
9490                }9595                }
9491                container rewrite {9596                container rewrite {
9492                  description9597                  description
9493                    "Set the tag rewriting policy";9598                    "Set the tag rewriting policy";
9494                  container ingress {9599                  container ingress {
9495                    description9600                    description
9496                      "Set the tag rewriting policy";9601                      "Set the tag rewriting policy";
9497                    container tag {9602                    container tag {
9498                      description9603                      description
9499                        "Set the tag rewriting policy";9604                        "Set the tag rewriting policy";
9500                      container push {9605                      container push {
9501                        description9606                        description
9502                          "Push one or more tags";9607                          "Push one or more tags";
9503                        leaf dot1ad {9608                        leaf dot1ad {
9504                          type uint32 {9609                          type uint32 {
9505                            range "1..4094" {9610                            range "1..4094" {
9506                              description9611                              description
9507                                "VLAN ID to push";9612                                "VLAN ID to push";
9508                            }9613                            }
9509                          }9614                          }
9510                          description9615                          description
9511                            "Push a Dot1ad tag";9616                            "Push a Dot1ad tag";
9512                        }9617                        }
9513                      }9618                      }
9514                    }9619                    }
9515                  }9620                  }
9516                }9621                }
9517                container mac {9622                container mac {
9518                  description9623                  description
9519                    "MAC configuration commands";9624                    "MAC configuration commands";
9520                  container aging {9625                  container aging {
9521                    description9626                    description
9522                      "MAC-Aging configuration commands";9627                      "MAC-Aging configuration commands";
9523                    leaf time {9628                    leaf time {
9524                      type uint32 {9629                      type uint32 {
9525                        range "300..30000" {9630                        range "300..30000" {
9526                          description9631                          description
9527                            "MAC address aging time in seconds";9632                            "MAC address aging time in seconds";
9528                        }9633                        }
9529                      }9634                      }
9530                      description9635                      description
9531                        "Mac aging";9636                        "Mac aging";
9532                    }9637                    }
9533                    container type {9638                    container type {
9534                      description9639                      description
9535                        "MAC address aging type";9640                        "MAC address aging type";
9536                      container absolute {9641                      container absolute {
9537                        must "not(../inactivity)";9642                        must "not(../inactivity)";
9538                        presence "Indicates a absolute node is configured.";9643                        presence "Indicates a absolute node is configured.";
9539                        description9644                        description
9540                          "Absolute aging type";9645                          "Absolute aging type";
9541                      }9646                      }
9542                      container inactivity {9647                      container inactivity {
9543                        must "not(../absolute)";9648                        must "not(../absolute)";
9544                        presence "Indicates a inactivity node is configured.";9649                        presence "Indicates a inactivity node is configured.";
9545                        description9650                        description
9546                          "Inactivity aging type";9651                          "Inactivity aging type";
9547                      }9652                      }
9548                    }9653                    }
9549                  }9654                  }
9550                  container learning {9655                  container learning {
9551                    presence "Indicates a learning node is configured.";9656                    presence "Indicates a learning node is configured.";
9552                    description9657                    description
9553                      "MAC learning";9658                      "MAC learning";
9554                    container disable {9659                    container disable {
9555                      presence "Indicates a disable node is configured.";9660                      presence "Indicates a disable node is configured.";
9556                      description9661                      description
9557                        "Disable MAC learning";9662                        "Disable MAC learning";
9558                    }9663                    }
9559                  }9664                  }
9560                }9665                }
nn9666                container mmrp-flood-optimization {
9667                  presence "Indicates a mmrp-flood-optimization node is configured.";
9668                  description
9669                    "Enable flood optimization for MMRP";
9670                }
9561              }9671              }
9562              container edge {9672              container edge {
9563                description9673                description
9564                  "PBB edge bridge domain";9674                  "PBB edge bridge domain";
9565                list i-sid {9675                list i-sid {
9566                  key "instance-id core-bridge-name";9676                  key "instance-id core-bridge-name";
9567                  description9677                  description
9568                    "Configure Service Instance Identifier";9678                    "Configure Service Instance Identifier";
9569                  leaf instance-id {9679                  leaf instance-id {
9570                    type uint32 {9680                    type uint32 {
9571                      range "256..16777214" {9681                      range "256..16777214" {
9572                        description9682                        description
9573                          "Service Instance ID";9683                          "Service Instance ID";
9574                      }9684                      }
9575                    }9685                    }
9576                    description9686                    description
9577                      "Configure Service Instance Identifier";9687                      "Configure Service Instance Identifier";
9578                  }9688                  }
9579                  leaf core-bridge-name {9689                  leaf core-bridge-name {
9580                    type xr:Cisco-ios-xr-string {9690                    type xr:Cisco-ios-xr-string {
9581                      length "1..27" {9691                      length "1..27" {
9582                        description9692                        description
9583                          "Name of the PBB core bridge domain";9693                          "Name of the PBB core bridge domain";
9584                      }9694                      }
9585                    }9695                    }
9586                    description9696                    description
9587                      "Specifiy PBB core bridge domain to associate with";9697                      "Specifiy PBB core bridge domain to associate with";
9588                  }9698                  }
9589                  container static-mac-addresses {9699                  container static-mac-addresses {
9590                    description9700                    description
9591                      "Static customer MAC address";9701                      "Static customer MAC address";
9592                    list static-mac-address {9702                    list static-mac-address {
9593                      key "mac-address";9703                      key "mac-address";
9594                      description9704                      description
9595                        "Static customer MAC address";9705                        "Static customer MAC address";
9596                      leaf mac-address {9706                      leaf mac-address {
9597                        type yang:mac-address;9707                        type yang:mac-address;
9598                        description9708                        description
9599                          "Static customer MAC address";9709                          "Static customer MAC address";
9600                      }9710                      }
9601                      leaf bmac {9711                      leaf bmac {
9602                        type yang:mac-address;9712                        type yang:mac-address;
9603                        mandatory true;9713                        mandatory true;
9604                        description9714                        description
9605                          "Static backbone MAC address to map with";9715                          "Static backbone MAC address to map with";
9606                      }9716                      }
9607                    }9717                    }
9608                  }9718                  }
9609                  leaf unknown-unicast-bmac {9719                  leaf unknown-unicast-bmac {
9610                    type yang:mac-address;9720                    type yang:mac-address;
9611                    description9721                    description
9612                      "Unknown Unicast backbone MAC address";9722                      "Unknown Unicast backbone MAC address";
9613                  }9723                  }
9614                  container split-horizon {9724                  container split-horizon {
9615                    description9725                    description
9616                      "Configure split horizon option";9726                      "Configure split horizon option";
9617                    container group {9727                    container group {
9618                      description9728                      description
9619                        "Configure split horizon group option";9729                        "Configure split horizon group option";
9620                      container vfi {9730                      container vfi {
9621                        description9731                        description
9622                          "Configure split horizon group vfi option";9732                          "Configure split horizon group vfi option";
9623                        container disable {9733                        container disable {
9624                          presence "Indicates a disable node is configured.";9734                          presence "Indicates a disable node is configured.";
9625                          description9735                          description
9626                            "Configure split horizon group vfi disable";9736                            "Configure split horizon group vfi disable";
9627                        }9737                        }
9628                      }9738                      }
9629                    }9739                    }
9630                  }9740                  }
9631                  container mac {9741                  container mac {
9632                    description9742                    description
9633                      "MAC configuration commands";9743                      "MAC configuration commands";
9634                    container aging {9744                    container aging {
9635                      description9745                      description
9636                        "MAC-Aging configuration commands";9746                        "MAC-Aging configuration commands";
9637                      leaf time {9747                      leaf time {
9638                        type uint32 {9748                        type uint32 {
9639                          range "300..30000" {9749                          range "300..30000" {
9640                            description9750                            description
9641                              "MAC address aging time in seconds";9751                              "MAC address aging time in seconds";
9642                          }9752                          }
9643                        }9753                        }
9644                        description9754                        description
9645                          "Mac aging";9755                          "Mac aging";
9646                      }9756                      }
9647                      container type {9757                      container type {
9648                        description9758                        description
9649                          "MAC address aging type";9759                          "MAC address aging type";
9650                        container absolute {9760                        container absolute {
9651                          must "not(../inactivity)";9761                          must "not(../inactivity)";
9652                          presence "Indicates a absolute node is configured.";9762                          presence "Indicates a absolute node is configured.";
9653                          description9763                          description
9654                            "Absolute aging type";9764                            "Absolute aging type";
9655                        }9765                        }
9656                        container inactivity {9766                        container inactivity {
9657                          must "not(../absolute)";9767                          must "not(../absolute)";
9658                          presence "Indicates a inactivity node is configured.";9768                          presence "Indicates a inactivity node is configured.";
9659                          description9769                          description
9660                            "Inactivity aging type";9770                            "Inactivity aging type";
9661                        }9771                        }
9662                      }9772                      }
9663                    }9773                    }
9664                    container learning {9774                    container learning {
9665                      presence "Indicates a learning node is configured.";9775                      presence "Indicates a learning node is configured.";
9666                      description9776                      description
9667                        "MAC learning";9777                        "MAC learning";
9668                      container disable {9778                      container disable {
9669                        presence "Indicates a disable node is configured.";9779                        presence "Indicates a disable node is configured.";
9670                        description9780                        description
9671                          "Disable MAC learning";9781                          "Disable MAC learning";
9672                      }9782                      }
9673                    }9783                    }
9674                    container limit {9784                    container limit {
9675                      description9785                      description
9676                        "MAC-Limit configuration commands";9786                        "MAC-Limit configuration commands";
9677                      leaf maximum {9787                      leaf maximum {
9678                        type uint32 {9788                        type uint32 {
9679                          range "0..4294967295" {9789                          range "0..4294967295" {
9680                            description9790                            description
9681                              "Number of MAC addresses after which MAC limit action is taken";9791                              "Number of MAC addresses after which MAC limit action is taken";
9682                          }9792                          }
9683                        }9793                        }
9684                        description9794                        description
9685                          "Number of MAC addresses after which MAC limit action is taken";9795                          "Number of MAC addresses after which MAC limit action is taken";
9686                      }9796                      }
9687                      container action {9797                      container action {
9688                        description9798                        description
9689                          "MAC address limit enforcement action";9799                          "MAC address limit enforcement action";
9690                        container flood {9800                        container flood {
9691                          must9801                          must
9692                            "not(../no-flood or ../shutdown9802                            "not(../no-flood or ../shutdown
9693                             or ../none)";9803                             or ../none)";
9694                          presence "Indicates a flood node is configured.";9804                          presence "Indicates a flood node is configured.";
9695                          description9805                          description
9696                            "Stop learning but continue flooding";9806                            "Stop learning but continue flooding";
9697                        }9807                        }
9698                        container no-flood {9808                        container no-flood {
9699                          must9809                          must
9700                            "not(../flood or ../shutdown9810                            "not(../flood or ../shutdown
9701                             or ../none)";9811                             or ../none)";
9702                          presence "Indicates a no-flood node is configured.";9812                          presence "Indicates a no-flood node is configured.";
9703                          description9813                          description
9704                            "Stop learning and stop flooding";9814                            "Stop learning and stop flooding";
9705                        }9815                        }
9706                        container shutdown {9816                        container shutdown {
9707                          must9817                          must
9708                            "not(../flood or ../no-flood9818                            "not(../flood or ../no-flood
9709                             or ../none)";9819                             or ../none)";
9710                          presence "Indicates a shutdown node is configured.";9820                          presence "Indicates a shutdown node is configured.";
9711                          description9821                          description
9712                            "Stop forwarding";9822                            "Stop forwarding";
9713                        }9823                        }
9714                        container none {9824                        container none {
9715                          must9825                          must
9716                            "not(../flood or ../no-flood9826                            "not(../flood or ../no-flood
9717                             or ../shutdown)";9827                             or ../shutdown)";
9718                          presence "Indicates a none node is configured.";9828                          presence "Indicates a none node is configured.";
9719                          description9829                          description
9720                            "No action";9830                            "No action";
9721                        }9831                        }
9722                      }9832                      }
9723                      container notification {9833                      container notification {
9724                        description9834                        description
9725                          "MAC address limit notification action";9835                          "MAC address limit notification action";
9726                        container trap {9836                        container trap {
9727                          must9837                          must
9728                            "not(../both or ../none9838                            "not(../both or ../none
9729                             or ../syslog)";9839                             or ../syslog)";
9730                          presence "Indicates a trap node is configured.";9840                          presence "Indicates a trap node is configured.";
9731                          description9841                          description
9732                            "Generate SNMP trap";9842                            "Generate SNMP trap";
9733                        }9843                        }
9734                        container both {9844                        container both {
9735                          must9845                          must
9736                            "not(../trap or ../none9846                            "not(../trap or ../none
9737                             or ../syslog)";9847                             or ../syslog)";
9738                          presence "Indicates a both node is configured.";9848                          presence "Indicates a both node is configured.";
9739                          description9849                          description
9740                            "Generate syslog message and SNMP trap";9850                            "Generate syslog message and SNMP trap";
9741                        }9851                        }
9742                        container none {9852                        container none {
9743                          must9853                          must
9744                            "not(../trap or ../both9854                            "not(../trap or ../both
9745                             or ../syslog)";9855                             or ../syslog)";
9746                          presence "Indicates a none node is configured.";9856                          presence "Indicates a none node is configured.";
9747                          description9857                          description
9748                            "No notification";9858                            "No notification";
9749                        }9859                        }
9750                        container syslog {9860                        container syslog {
9751                          must9861                          must
9752                            "not(../trap or ../both9862                            "not(../trap or ../both
9753                             or ../none)";9863                             or ../none)";
9754                          presence "Indicates a syslog node is configured.";9864                          presence "Indicates a syslog node is configured.";
9755                          description9865                          description
9756                            "Generate syslog message";9866                            "Generate syslog message";
9757                        }9867                        }
9758                      }9868                      }
9759                    }9869                    }
9760                    container secure {9870                    container secure {
9761                      presence "Indicates a secure node is configured.";9871                      presence "Indicates a secure node is configured.";
9762                      description9872                      description
9763                        "MAC Secure configuration commands";9873                        "MAC Secure configuration commands";
9764                      container logging {9874                      container logging {
9765                        presence "Indicates a logging node is configured.";9875                        presence "Indicates a logging node is configured.";
9766                        description9876                        description
9767                          "Logging";9877                          "Logging";
9768                        container disable {9878                        container disable {
9769                          presence "Indicates a disable node is configured.";9879                          presence "Indicates a disable node is configured.";
9770                          description9880                          description
9771                            "disable logging";9881                            "disable logging";
9772                        }9882                        }
9773                      }9883                      }
9774                      container action {9884                      container action {
9775                        description9885                        description
9776                          "MAC secure enforcement action";9886                          "MAC secure enforcement action";
9777                        container none {9887                        container none {
9778                          must "not(../shutdown or ../restrict)";9888                          must "not(../shutdown or ../restrict)";
9779                          presence "Indicates a none node is configured.";9889                          presence "Indicates a none node is configured.";
9780                          description9890                          description
9781                            "Forward the violating packet and allow the MAC to be relearned";9891                            "Forward the violating packet and allow the MAC to be relearned";
9782                        }9892                        }
9783                        container shutdown {9893                        container shutdown {
9784                          must "not(../none or ../restrict)";9894                          must "not(../none or ../restrict)";
9785                          presence "Indicates a shutdown node is configured.";9895                          presence "Indicates a shutdown node is configured.";
9786                          description9896                          description
9787                            "Shutdown the violating bridge port";9897                            "Shutdown the violating bridge port";
9788                        }9898                        }
9789                        container restrict {9899                        container restrict {
9790                          must "not(../none or ../shutdown)";9900                          must "not(../none or ../shutdown)";
9791                          presence "Indicates a restrict node is configured.";9901                          presence "Indicates a restrict node is configured.";
9792                          description9902                          description
9793                            "Drop the violating packet and not allow the MAC to be relearned";9903                            "Drop the violating packet and not allow the MAC to be relearned";
9794                        }9904                        }
9795                      }9905                      }
9796                      container disable {9906                      container disable {
9797                        presence "Indicates a disable node is configured.";9907                        presence "Indicates a disable node is configured.";
9798                        description9908                        description
9799                          "Disable MAC Secure";9909                          "Disable MAC Secure";
9800                      }9910                      }
9801                      container accept-shutdown {9911                      container accept-shutdown {
9802                        presence "Indicates a accept-shutdown node is configured.";9912                        presence "Indicates a accept-shutdown node is configured.";
9803                        description9913                        description
9804                          "Accept shutdown action to be taken due to MAC violation";9914                          "Accept shutdown action to be taken due to MAC violation";
9805                      }9915                      }
9806                    }9916                    }
9807                  }9917                  }
9808                  container dhcp {9918                  container dhcp {
9809                    presence "Indicates a dhcp node is configured.";9919                    presence "Indicates a dhcp node is configured.";
9810                    description9920                    description
9811                      "DHCP protocol";9921                      "DHCP protocol";
9812                    container ipv4 {9922                    container ipv4 {
9813                      description9923                      description
9814                        "IP Version 4";9924                        "IP Version 4";
9815                      container snoop {9925                      container snoop {
9816                        presence "Indicates a snoop node is configured.";9926                        presence "Indicates a snoop node is configured.";
9817                        description9927                        description
9818                          "Set the snooping profile";9928                          "Set the snooping profile";
9819                        leaf profile {9929                        leaf profile {
9820                          type xr:Cisco-ios-xr-string {9930                          type xr:Cisco-ios-xr-string {
9821                            length "1..32" {9931                            length "1..32" {
9822                              description9932                              description
9823                                "DHCPv4 Snooping profile name";9933                                "DHCPv4 Snooping profile name";
9824                            }9934                            }
9825                          }9935                          }
9826                          description9936                          description
9827                            "Attach a DHCP profile";9937                            "Attach a DHCP profile";
9828                        }9938                        }
9829                      }9939                      }
9830                      container none {9940                      container none {
9831                        presence "Indicates a none node is configured.";9941                        presence "Indicates a none node is configured.";
9832                        description9942                        description
9833                          "Disable DHCP snooping";9943                          "Disable DHCP snooping";
9834                      }9944                      }
9835                    }9945                    }
9836                  }9946                  }
9837                  container igmp {9947                  container igmp {
9838                    description9948                    description
9839                      "IGMP protocol";9949                      "IGMP protocol";
9840                    container snooping {9950                    container snooping {
9841                      description9951                      description
9842                        "Set the snooping profile";9952                        "Set the snooping profile";
9843                      leaf profile {9953                      leaf profile {
9844                        type xr:Cisco-ios-xr-string {9954                        type xr:Cisco-ios-xr-string {
9845                          length "1..32" {9955                          length "1..32" {
9846                            description9956                            description
9847                              "IGMP Snooping profile name";9957                              "IGMP Snooping profile name";
9848                          }9958                          }
9849                        }9959                        }
9850                        description9960                        description
9851                          "Attach an IGMP profile";9961                          "Attach an IGMP profile";
9852                      }9962                      }
9853                    }9963                    }
9854                  }9964                  }
9855                }9965                }
9856              }9966              }
9857            }9967            }
9858            leaf mtu {9968            leaf mtu {
9859              type uint32 {9969              type uint32 {
9860                range "46..65535" {9970                range "46..65535" {
9861                  description9971                  description
9862                    "Maximum transmission unit size (payload) in bytes";9972                    "Maximum transmission unit size (payload) in bytes";
9863                }9973                }
9864              }9974              }
9865              description9975              description
9866                "Maximum transmission unit (payload) for this Bridge Domain";9976                "Maximum transmission unit (payload) for this Bridge Domain";
9867            }9977            }
9868            container coupled-mode {9978            container coupled-mode {
9869              if-feature "l2vpn_is_cli_supported";9979              if-feature "l2vpn_is_cli_supported";
9870              presence "Indicates a coupled-mode node is configured.";9980              presence "Indicates a coupled-mode node is configured.";
9871              description9981              description
9872                "Enable coupled mode for the Bridge Domain";9982                "Enable coupled mode for the Bridge Domain";
9873            }9983            }
9874            container transport-mode {9984            container transport-mode {
9875              description9985              description
9876                "Bridge domain transport mode";9986                "Bridge domain transport mode";
9877              container vlan {9987              container vlan {
9878                description9988                description
9879                  "Vlan tagged mode";9989                  "Vlan tagged mode";
9880                container passthrough {9990                container passthrough {
9881                  presence "Indicates a passthrough node is configured.";9991                  presence "Indicates a passthrough node is configured.";
9882                  description9992                  description
9883                    "passthrough incoming tags";9993                    "passthrough incoming tags";
9884                }9994                }
9885              }9995              }
9886            }9996            }
9887            container flooding {9997            container flooding {
9888              description9998              description
9889                "Traffic flooding";9999                "Traffic flooding";
9890              container disable {10000              container disable {
9891                presence "Indicates a disable node is configured.";10001                presence "Indicates a disable node is configured.";
9892                description10002                description
9893                  "Disable flooding";10003                  "Disable flooding";
9894              }10004              }
nn10005              container unknown-unicast {
10006                description
10007                  "Traffic flooding unknown unicast";
10008                container disable {
10009                  presence "Indicates a disable node is configured.";
10010                  description
10011                    "Disable Unknown Unicast flooding";
10012                }
10013              }
9895            }10014            }
9896            container dynamic-arp-inspection {10015            container dynamic-arp-inspection {
9897              presence "Indicates a dynamic-arp-inspection node is configured.";10016              presence "Indicates a dynamic-arp-inspection node is configured.";
9898              description10017              description
9899                "Dynamic ARP Inspection";10018                "Dynamic ARP Inspection";
9900              container logging {10019              container logging {
9901                presence "Indicates a logging node is configured.";10020                presence "Indicates a logging node is configured.";
9902                description10021                description
9903                  "Enable Logging";10022                  "Enable Logging";
9904              }10023              }
9905              container address-validation {10024              container address-validation {
9906                presence "Indicates a address-validation node is configured.";10025                presence "Indicates a address-validation node is configured.";
9907                description10026                description
9908                  "Address Validation Configurations";10027                  "Address Validation Configurations";
9909                container src-mac {10028                container src-mac {
9910                  presence "Indicates a src-mac node is configured.";10029                  presence "Indicates a src-mac node is configured.";
9911                  description10030                  description
9912                    "Match Source MAC Address";10031                    "Match Source MAC Address";
9913                }10032                }
9914                container dst-mac {10033                container dst-mac {
9915                  presence "Indicates a dst-mac node is configured.";10034                  presence "Indicates a dst-mac node is configured.";
9916                  description10035                  description
9917                    "Match Destination MAC Address";10036                    "Match Destination MAC Address";
9918                }10037                }
9919                container ipv4 {10038                container ipv4 {
9920                  presence "Indicates a ipv4 node is configured.";10039                  presence "Indicates a ipv4 node is configured.";
9921                  description10040                  description
9922                    "Match IPv4 Address";10041                    "Match IPv4 Address";
9923                }10042                }
9924              }10043              }
9925            }10044            }
9926            container ip-source-guard {10045            container ip-source-guard {
9927              presence "Indicates a ip-source-guard node is configured.";10046              presence "Indicates a ip-source-guard node is configured.";
9928              description10047              description
9929                "IP Source Guard";10048                "IP Source Guard";
9930              container logging {10049              container logging {
9931                presence "Indicates a logging node is configured.";10050                presence "Indicates a logging node is configured.";
9932                description10051                description
9933                  "Enable Logging";10052                  "Enable Logging";
9934              }10053              }
9935            }10054            }
9936            container dhcp {10055            container dhcp {
9937              description10056              description
9938                "DHCP protocol";10057                "DHCP protocol";
9939              container ipv4 {10058              container ipv4 {
9940                description10059                description
9941                  "IP Version 4";10060                  "IP Version 4";
9942                container snoop {10061                container snoop {
9943                  description10062                  description
9944                    "Set the snooping profile";10063                    "Set the snooping profile";
9945                  leaf profile {10064                  leaf profile {
9946                    type xr:Cisco-ios-xr-string {10065                    type xr:Cisco-ios-xr-string {
9947                      length "1..32" {10066                      length "1..32" {
9948                        description10067                        description
9949                          "DHCPv4 Snooping profile name";10068                          "DHCPv4 Snooping profile name";
9950                      }10069                      }
9951                    }10070                    }
9952                    description10071                    description
9953                      "Attach a DHCP profile";10072                      "Attach a DHCP profile";
9954                  }10073                  }
9955                }10074                }
9956              }10075              }
9957            }10076            }
9958            container igmp {10077            container igmp {
9959              description10078              description
9960                "IGMP protocol";10079                "IGMP protocol";
9961              container snooping {10080              container snooping {
9962                description10081                description
9963                  "Set the snooping profile";10082                  "Set the snooping profile";
9964                leaf profile {10083                leaf profile {
9965                  type xr:Cisco-ios-xr-string {10084                  type xr:Cisco-ios-xr-string {
9966                    length "1..32" {10085                    length "1..32" {
9967                      description10086                      description
9968                        "IGMP Snooping profile name";10087                        "IGMP Snooping profile name";
9969                    }10088                    }
9970                  }10089                  }
9971                  description10090                  description
9972                    "Attach an IGMP profile";10091                    "Attach an IGMP profile";
9973                }10092                }
9974                container disable {10093                container disable {
9975                  presence "Indicates a disable node is configured.";10094                  presence "Indicates a disable node is configured.";
9976                  description10095                  description
9977                    "disable IGMP snooping for the current bridge domain";10096                    "disable IGMP snooping for the current bridge domain";
9978                }10097                }
9979              }10098              }
9980            }10099            }
9981            container mld {10100            container mld {
9982              description10101              description
9983                "MLD protocol";10102                "MLD protocol";
9984              container snooping {10103              container snooping {
9985                description10104                description
9986                  "Set the snooping profile";10105                  "Set the snooping profile";
9987                leaf profile {10106                leaf profile {
9988                  type xr:Cisco-ios-xr-string {10107                  type xr:Cisco-ios-xr-string {
9989                    length "1..32" {10108                    length "1..32" {
9990                      description10109                      description
9991                        "MLD Snooping profile name";10110                        "MLD Snooping profile name";
9992                    }10111                    }
9993                  }10112                  }
9994                  description10113                  description
9995                    "Attach a MLD profile";10114                    "Attach a MLD profile";
9996                }10115                }
9997              }10116              }
9998            }10117            }
9999            container storm-control {10118            container storm-control {
10000              description10119              description
10001                "Storm Control";10120                "Storm Control";
10002              container broadcast {10121              container broadcast {
10003                description10122                description
10004                  "Broadcast Storm Control";10123                  "Broadcast Storm Control";
10005                leaf pps {10124                leaf pps {
10006                  type uint32 {10125                  type uint32 {
10007                    range "1..160000" {10126                    range "1..160000" {
10008                      description10127                      description
10009                        "storm control pps value";10128                        "storm control pps value";
10010                    }10129                    }
10011                  }10130                  }
10012                  description10131                  description
10013                    "Set the storm control pps";10132                    "Set the storm control pps";
10014                }10133                }
10015                leaf kbps {10134                leaf kbps {
10016                  type uint32 {10135                  type uint32 {
10017                    range "64..1280000" {10136                    range "64..1280000" {
10018                      description10137                      description
10019                        "storm control kbps value";10138                        "storm control kbps value";
10020                    }10139                    }
10021                  }10140                  }
10022                  description10141                  description
10023                    "Set the storm control kbps";10142                    "Set the storm control kbps";
10024                }10143                }
10025              }10144              }
10026              container multicast {10145              container multicast {
10027                description10146                description
10028                  "Multicast Storm Control";10147                  "Multicast Storm Control";
10029                leaf pps {10148                leaf pps {
10030                  type uint32 {10149                  type uint32 {
10031                    range "1..160000" {10150                    range "1..160000" {
10032                      description10151                      description
10033                        "storm control pps value";10152                        "storm control pps value";
10034                    }10153                    }
10035                  }10154                  }
10036                  description10155                  description
10037                    "Set the storm control pps";10156                    "Set the storm control pps";
10038                }10157                }
10039                leaf kbps {10158                leaf kbps {
10040                  type uint32 {10159                  type uint32 {
10041                    range "64..1280000" {10160                    range "64..1280000" {
10042                      description10161                      description
10043                        "storm control kbps value";10162                        "storm control kbps value";
10044                    }10163                    }
10045                  }10164                  }
10046                  description10165                  description
10047                    "Set the storm control kbps";10166                    "Set the storm control kbps";
10048                }10167                }
10049              }10168              }
10050              container unknown-unicast {10169              container unknown-unicast {
10051                description10170                description
10052                  "Unknown-unicast Storm Control";10171                  "Unknown-unicast Storm Control";
10053                leaf pps {10172                leaf pps {
10054                  type uint32 {10173                  type uint32 {
10055                    range "1..160000" {10174                    range "1..160000" {
10056                      description10175                      description
10057                        "storm control pps value";10176                        "storm control pps value";
10058                    }10177                    }
10059                  }10178                  }
10060                  description10179                  description
10061                    "Set the storm control pps";10180                    "Set the storm control pps";
10062                }10181                }
10063                leaf kbps {10182                leaf kbps {
10064                  type uint32 {10183                  type uint32 {
10065                    range "64..1280000" {10184                    range "64..1280000" {
10066                      description10185                      description
10067                        "storm control kbps value";10186                        "storm control kbps value";
10068                    }10187                    }
10069                  }10188                  }
10070                  description10189                  description
10071                    "Set the storm control kbps";10190                    "Set the storm control kbps";
10072                }10191                }
10073              }10192              }
10074            }10193            }
10075            container interface {10194            container interface {
10076              description10195              description
10077                "Assign interface to bridge domain";10196                "Assign interface to bridge domain";
n10078              list interface {n
10079                key "interface-name";
10080                description
10081                  "Specify interface name";
10082                leaf interface-name {
10083                  type xr:Interface-name;
10084                  description
10085                    "Specify interface name";
10086                }
10087                container flooding {
10088                  presence "Indicates a flooding node is configured.";
10089                  description
10090                    "Traffic flooding";
10091                  container disable {
10092                    presence "Indicates a disable node is configured.";
10093                    description
10094                      "Disable flooding";
10095                  }
10096                }
10097                container storm-control {
10098                  description
10099                    "Storm Control";
10100                  container broadcast {
10101                    description
10102                      "Broadcast Storm Control";
10103                    leaf pps {
10104                      type uint32 {
10105                        range "1..160000" {
10106                          description
10107                            "storm control pps value";
10108                        }
10109                      }
10110                      description
10111                        "Set the storm control pps";
10112                    }
10113                    leaf kbps {
10114                      type uint32 {
10115                        range "64..1280000" {
10116                          description
10117                            "storm control kbps value";
10118                        }
10119                      }
10120                      description
10121                        "Set the storm control kbps";
10122                    }
10123                  }
10124                  container multicast {
10125                    description
10126                      "Multicast Storm Control";
10127                    leaf pps {
10128                      type uint32 {
10129                        range "1..160000" {
10130                          description
10131                            "storm control pps value";
10132                        }
10133                      }
10134                      description
10135                        "Set the storm control pps";
10136                    }
10137                    leaf kbps {
10138                      type uint32 {
10139                        range "64..1280000" {
10140                          description
10141                            "storm control kbps value";
10142                        }
10143                      }
10144                      description
10145                        "Set the storm control kbps";
10146                    }
10147                  }
10148                  container unknown-unicast {
10149                    description
10150                      "Unknown-unicast Storm Control";
10151                    leaf pps {
10152                      type uint32 {
10153                        range "1..160000" {
10154                          description
10155                            "storm control pps value";
10156                        }
10157                      }
10158                      description
10159                        "Set the storm control pps";
10160                    }
10161                    leaf kbps {
10162                      type uint32 {
10163                        range "64..1280000" {
10164                          description
10165                            "storm control kbps value";
10166                        }
10167                      }
10168                      description
10169                        "Set the storm control kbps";
10170                    }
10171                  }
10172                }
10173                container mac {
10174                  description
10175                    "MAC configuration commands";
10176                  container aging {
10177                    description
10178                      "MAC-Aging configuration commands";
10179                    leaf time {
10180                      type uint32 {
10181                        range "300..30000" {
10182                          description
10183                            "MAC address aging time in seconds";
10184                        }
10185                      }
10186                      description
10187                        "Mac aging";
10188                    }
10189                    container type {
10190                      description
10191                        "MAC address aging type";
10192                      container absolute {
10193                        must "not(../inactivity)";
10194                        presence "Indicates a absolute node is configured.";
10195                        description
10196                          "Absolute aging type";
10197                      }
10198                      container inactivity {
10199                        must "not(../absolute)";
10200                        presence "Indicates a inactivity node is configured.";
10201                        description
10202                          "Inactivity aging type";
10203                      }
10204                    }
10205                  }
10206                  container learning {
10207                    presence "Indicates a learning node is configured.";
10208                    description
10209                      "MAC learning";
10210                    container disable {
10211                      presence "Indicates a disable node is configured.";
10212                      description
10213                        "Disable MAC learning";
10214                    }
10215                  }
10216                  container limit {
10217                    description
10218                      "MAC-Limit configuration commands";
10219                    leaf maximum {
10220                      type uint32 {
10221                        range "0..4294967295" {
10222                          description
10223                            "Number of MAC addresses after which MAC limit action is taken";
10224                        }
10225                      }
10226                      description
10227                        "Number of MAC addresses after which MAC limit action is taken";
10228                    }
10229                    container action {
10230                      description
10231                        "MAC address limit enforcement action";
10232                      container flood {
10233                        must
10234                          "not(../no-flood or ../shutdown
10235                           or ../none)";
10236                        presence "Indicates a flood node is configured.";
10237                        description
10238                          "Stop learning but continue flooding";
10239                      }
10240                      container no-flood {
10241                        must
10242                          "not(../flood or ../shutdown
10243                           or ../none)";
10244                        presence "Indicates a no-flood node is configured.";
10245                        description
10246                          "Stop learning and stop flooding";
10247                      }
10248                      container shutdown {
10249                        must
10250                          "not(../flood or ../no-flood
10251                           or ../none)";
10252                        presence "Indicates a shutdown node is configured.";
10253                        description
10254                          "Stop forwarding";
10255                      }
10256                      container none {
10257                        must
10258                          "not(../flood or ../no-flood
10259                           or ../shutdown)";
10260                        presence "Indicates a none node is configured.";
10261                        description
10262                          "No action";
10263                      }
10264                    }
10265                    container notification {
10266                      description
10267                        "MAC address limit notification action";
10268                      container trap {
10269                        must
10270                          "not(../both or ../none
10271                           or ../syslog)";
10272                        presence "Indicates a trap node is configured.";
10273                        description
10274                          "Generate SNMP trap";
10275                      }
10276                      container both {
10277                        must
10278                          "not(../trap or ../none
10279                           or ../syslog)";
10280                        presence "Indicates a both node is configured.";
10281                        description
10282                          "Generate syslog message and SNMP trap";
10283                      }
10284                      container none {
10285                        must
10286                          "not(../trap or ../both
10287                           or ../syslog)";
10288                        presence "Indicates a none node is configured.";
10289                        description
10290                          "No notification";
10291                      }
10292                      container syslog {
10293                        must
10294                          "not(../trap or ../both
10295                           or ../none)";
10296                        presence "Indicates a syslog node is configured.";
10297                        description
10298                          "Generate syslog message";
10299                      }
10300                    }
10301                  }
10302                  container port-down {
10303                    description
10304                      "Configure action when port goes down";
10305                    container flush {
10306                      presence "Indicates a flush node is configured.";
10307                      description
10308                        "Configure MAC flush when port goes down";
10309                      container disable {
10310                        presence "Indicates a disable node is configured.";
10311                        description
10312                          "Disable MAC flush when port goes down";
10313                      }
10314                    }
10315                  }
10316                  container secure {
10317                    presence "Indicates a secure node is configured.";
10318                    description
10319                      "MAC Secure configuration commands";
10320                    container logging {
10321                      presence "Indicates a logging node is configured.";
10322                      description
10323                        "Logging";
10324                      container disable {
10325                        presence "Indicates a disable node is configured.";
10326                        description
10327                          "disable logging";
10328                      }
10329                    }
10330                    container action {
10331                      description
10332                        "MAC secure enforcement action";
10333                      container none {
10334                        must "not(../shutdown or ../restrict)";
10335                        presence "Indicates a none node is configured.";
10336                        description
10337                          "Forward the violating packet and allow the MAC to be relearned";
10338                      }
10339                      container shutdown {
10340                        must "not(../none or ../restrict)";
10341                        presence "Indicates a shutdown node is configured.";
10342                        description
10343                          "Shutdown the violating bridge port";
10344                      }
10345                      container restrict {
10346                        must "not(../none or ../shutdown)";
10347                        presence "Indicates a restrict node is configured.";
10348                        description
10349                          "Drop the violating packet and not allow the MAC to be relearned";
10350                      }
10351                    }
10352                    container disable {
10353                      presence "Indicates a disable node is configured.";
10354                      description
10355                        "Disable MAC Secure";
10356                    }
10357                  }
10358                }
10359                container dynamic-arp-inspection {
10360                  presence "Indicates a dynamic-arp-inspection node is configured.";
10361                  description
10362                    "Dynamic ARP Inspection";
10363                  container logging {
10364                    presence "Indicates a logging node is configured.";
10365                    description
10366                      "Logging";
10367                    container disable {
10368                      presence "Indicates a disable node is configured.";
10369                      description
10370                        "disable logging";
10371                    }
10372                  }
10373                  container address-validation {
10374                    presence "Indicates a address-validation node is configured.";
10375                    description
10376                      "Address Validation Configurations";
10377                    container src-mac {
10378                      presence "Indicates a src-mac node is configured.";
10379                      description
10380                        "Match Source MAC Address";
10381                      container disable {
10382                        presence "Indicates a disable node is configured.";
10383                        description
10384                          "disable Source MAC Address check";
10385                      }
10386                    }
10387                    container dst-mac {
10388                      presence "Indicates a dst-mac node is configured.";
10389                      description
10390                        "Match Destination MAC Address";
10391                      container disable {
10392                        presence "Indicates a disable node is configured.";
10393                        description
10394                          "disable Destimation MAC Address check";
10395                      }
10396                    }
10397                    container ipv4 {
10398                      presence "Indicates a ipv4 node is configured.";
10399                      description
10400                        "Match IPv4 Address";
10401                      container disable {
10402                        presence "Indicates a disable node is configured.";
10403                        description
10404                          "disable IPV4 Address check";
10405                      }
10406                    }
10407                  }
10408                  container disable {
10409                    presence "Indicates a disable node is configured.";
10410                    description
10411                      "Disable Dynamic Arp Inspection";
10412                  }
10413                }
10414                container ip-source-guard {
10415                  presence "Indicates a ip-source-guard node is configured.";
10416                  description
10417                    "IP Source Guard";
10418                  container logging {
10419                    presence "Indicates a logging node is configured.";
10420                    description
10421                      "Logging";
10422                    container disable {
10423                      presence "Indicates a disable node is configured.";
10424                      description
10425                        "disable logging";
10426                    }
10427                  }
10428                  container disable {
10429                    presence "Indicates a disable node is configured.";
10430                    description
10431                      "Disable IP Source Guard";
10432                  }
10433                }
10434                container dhcp {
10435                  if-feature "l2vpn_is_cli_supported";
10436                  presence "Indicates a dhcp node is configured.";
10437                  description
10438                    "DHCP protocol";
10439                  container ipv4 {
10440                    description
10441                      "IP Version 4";
10442                    container snoop {
10443                      presence "Indicates a snoop node is configured.";
10444                      description
10445                        "Set the snooping profile";
10446                      leaf profile {
10447                        type xr:Cisco-ios-xr-string {
10448                          length "1..32" {
10449                            description
10450                              "DHCPv4 Snooping profile name";
10451                          }
10452                        }
10453                        mandatory true;
10454                        description
10455                          "Attach a DHCP profile";
10456                      }
10457                    }
10458                    container none {
10459                      presence "Indicates a none node is configured.";
10460                      description
10461                        "Disable DHCP snooping";
10462                    }
10463                  }
10464                }
10465                container static-mac-addresses {
10466                  description
10467                    "Static MAC address";
10468                  list static-mac-address {
10469                    key "mac-address";
10470                    description
10471                      "Static MAC address";
10472                    leaf mac-address {
10473                      type yang:mac-address;
10474                      description
10475                        "Static MAC address";
10476                    }
10477                  }
10478                }
10479                container split-horizon {
10480                  description
10481                    "Configure split horizon group";
10482                  container group {
10483                    presence "Indicates a group node is configured.";
10484                    description
10485                      "Configure split horizon group";
10486                  }
10487                }
10488                container igmp {
10489                  description
10490                    "IGMP protocol";
10491                  container snooping {
10492                    description
10493                      "Set the snooping profile";
10494                    leaf profile {
10495                      type xr:Cisco-ios-xr-string {
10496                        length "1..32" {
10497                          description
10498                            "IGMP Snooping profile name";
10499                        }
10500                      }
10501                      description
10502                        "Attach an IGMP profile";
10503                    }
10504                  }
10505                }
10506                container mld {
10507                  description
10508                    "MLD protocol";
10509                  container snooping {
10510                    description
10511                      "Set the snooping profile";
10512                    leaf profile {
10513                      type xr:Cisco-ios-xr-string {
10514                        length "1..32" {
10515                          description
10516                            "MLD Snooping profile name";
10517                        }
10518                      }
10519                      description
10520                        "Attach a MLD profile";
10521                    }
10522                  }
10523                }
10524              }
10525            }10197            }
10526            container routed {10198            container routed {
10527              description10199              description
10528                "Bridge domain L3 interface";10200                "Bridge domain L3 interface";
10529              list interface {10201              list interface {
10530                key "interface-name";10202                key "interface-name";
10531                description10203                description
10532                  "Assign interface to bridge domain";10204                  "Assign interface to bridge domain";
10533                leaf interface-name {10205                leaf interface-name {
10534                  type xr:Interface-name;10206                  type xr:Interface-name;
10535                  description10207                  description
10536                    "Assign interface to bridge domain";10208                    "Assign interface to bridge domain";
10537                }10209                }
10538                container split-horizon {10210                container split-horizon {
10539                  description10211                  description
10540                    "Configure split-horizon group";10212                    "Configure split-horizon group";
10541                  container group {10213                  container group {
10542                    description10214                    description
10543                      "Configure split-horizon group";10215                      "Configure split-horizon group";
10544                    container core {10216                    container core {
10545                      presence "Indicates a core node is configured.";10217                      presence "Indicates a core node is configured.";
10546                      description10218                      description
10547                        "Configure BVI under SHG 1";10219                        "Configure BVI under SHG 1";
10548                    }10220                    }
10549                  }10221                  }
10550                }10222                }
10551              }10223              }
10552            }10224            }
10553            container shutdown {10225            container shutdown {
10554              presence "Indicates a shutdown node is configured.";10226              presence "Indicates a shutdown node is configured.";
10555              description10227              description
10556                "shutdown the Bridge Domain";10228                "shutdown the Bridge Domain";
10557            }10229            }
10558            container mac {10230            container mac {
10559              description10231              description
10560                "MAC configuration commands";10232                "MAC configuration commands";
10561              container aging {10233              container aging {
10562                if-feature "l2vpn_is_cli_supported";10234                if-feature "l2vpn_is_cli_supported";
10563                description10235                description
10564                  "MAC-Aging configuration commands";10236                  "MAC-Aging configuration commands";
10565                leaf time {10237                leaf time {
10566                  type uint32 {10238                  type uint32 {
10567                    range "300..30000" {10239                    range "300..30000" {
10568                      description10240                      description
10569                        "MAC address aging time in seconds";10241                        "MAC address aging time in seconds";
10570                    }10242                    }
10571                  }10243                  }
10572                  description10244                  description
10573                    "Mac aging";10245                    "Mac aging";
10574                }10246                }
10575                container type {10247                container type {
10576                  description10248                  description
10577                    "MAC address aging type";10249                    "MAC address aging type";
10578                  container absolute {10250                  container absolute {
10579                    presence "Indicates a absolute node is configured.";10251                    presence "Indicates a absolute node is configured.";
10580                    description10252                    description
10581                      "Absolute aging type";10253                      "Absolute aging type";
10582                  }10254                  }
10583                }10255                }
10584              }10256              }
10585              container static-addresses {10257              container static-addresses {
10586                description10258                description
10587                  "Static MAC address for filtering";10259                  "Static MAC address for filtering";
10588                list static-address {10260                list static-address {
10589                  must "drop";10261                  must "drop";
10590                  key "mac-address";10262                  key "mac-address";
10591                  description10263                  description
10592                    "Static MAC address for filtering";10264                    "Static MAC address for filtering";
10593                  leaf mac-address {10265                  leaf mac-address {
10594                    type yang:mac-address;10266                    type yang:mac-address;
10595                    description10267                    description
10596                      "Static MAC address for filtering";10268                      "Static MAC address for filtering";
10597                  }10269                  }
10598                  container drop {10270                  container drop {
10599                    presence "Indicates a drop node is configured.";10271                    presence "Indicates a drop node is configured.";
10600                    description10272                    description
10601                      "Drop matching packets";10273                      "Drop matching packets";
10602                  }10274                  }
10603                }10275                }
10604              }10276              }
10605              container learning {10277              container learning {
10606                description10278                description
10607                  "MAC learning";10279                  "MAC learning";
10608                container disable {10280                container disable {
10609                  presence "Indicates a disable node is configured.";10281                  presence "Indicates a disable node is configured.";
10610                  description10282                  description
10611                    "Disable MAC learning";10283                    "Disable MAC learning";
10612                }10284                }
10613              }10285              }
10614              container withdraw {10286              container withdraw {
10615                description10287                description
10616                  "MAC withdraw";10288                  "MAC withdraw";
10617                container disable {10289                container disable {
10618                  presence "Indicates a disable node is configured.";10290                  presence "Indicates a disable node is configured.";
10619                  description10291                  description
10620                    "Disable MAC withdraw";10292                    "Disable MAC withdraw";
10621                }10293                }
10622                container access-pw {10294                container access-pw {
10623                  description10295                  description
10624                    "MAC withdraw sent to Access PWs ";10296                    "MAC withdraw sent to Access PWs ";
10625                  container disable {10297                  container disable {
10626                    presence "Indicates a disable node is configured.";10298                    presence "Indicates a disable node is configured.";
10627                    description10299                    description
10628                      "Disable MAC withdraw on Access PW";10300                      "Disable MAC withdraw on Access PW";
10629                  }10301                  }
10630                }10302                }
10631                container relay {10303                container relay {
10632                  presence "Indicates a relay node is configured.";10304                  presence "Indicates a relay node is configured.";
10633                  description10305                  description
10634                    "MAC withdraw relayed to Access PWs ";10306                    "MAC withdraw relayed to Access PWs ";
10635                }10307                }
10636                container state-down {10308                container state-down {
10637                  must "not(../optimize)";10309                  must "not(../optimize)";
10638                  presence "Indicates a state-down node is configured.";10310                  presence "Indicates a state-down node is configured.";
10639                  description10311                  description
10640                    "MAC withdraw sent on bridge port down";10312                    "MAC withdraw sent on bridge port down";
10641                }10313                }
10642                container optimize {10314                container optimize {
10643                  must "not(../state-down)";10315                  must "not(../state-down)";
10644                  presence "Indicates a optimize node is configured.";10316                  presence "Indicates a optimize node is configured.";
10645                  description10317                  description
10646                    "Optimized LDP MAC withdraw (when port goes down)";10318                    "Optimized LDP MAC withdraw (when port goes down)";
10647                }10319                }
10648              }10320              }
10649              container limit {10321              container limit {
10650                description10322                description
10651                  "MAC-Limit configuration commands";10323                  "MAC-Limit configuration commands";
10652                leaf maximum {10324                leaf maximum {
10653                  type uint32 {10325                  type uint32 {
10654                    range "0..4294967295" {10326                    range "0..4294967295" {
10655                      description10327                      description
10656                        "Number of MAC addresses after which MAC limit action is taken";10328                        "Number of MAC addresses after which MAC limit action is taken";
10657                    }10329                    }
10658                  }10330                  }
10659                  description10331                  description
10660                    "Number of MAC addresses after which MAC limit action is taken";10332                    "Number of MAC addresses after which MAC limit action is taken";
10661                }10333                }
10662                container action {10334                container action {
10663                  description10335                  description
10664                    "MAC address limit enforcement action";10336                    "MAC address limit enforcement action";
10665                  container flood {10337                  container flood {
10666                    must "not(../no-flood or ../shutdown)";10338                    must "not(../no-flood or ../shutdown)";
10667                    presence "Indicates a flood node is configured.";10339                    presence "Indicates a flood node is configured.";
10668                    description10340                    description
10669                      "Stop learning but continue flooding";10341                      "Stop learning but continue flooding";
10670                  }10342                  }
10671                  container no-flood {10343                  container no-flood {
10672                    must "not(../flood or ../shutdown)";10344                    must "not(../flood or ../shutdown)";
10673                    presence "Indicates a no-flood node is configured.";10345                    presence "Indicates a no-flood node is configured.";
10674                    description10346                    description
10675                      "Stop learning and stop flooding";10347                      "Stop learning and stop flooding";
10676                  }10348                  }
10677                  container shutdown {10349                  container shutdown {
10678                    must "not(../flood or ../no-flood)";10350                    must "not(../flood or ../no-flood)";
10679                    presence "Indicates a shutdown node is configured.";10351                    presence "Indicates a shutdown node is configured.";
10680                    description10352                    description
10681                      "Stop forwarding";10353                      "Stop forwarding";
10682                  }10354                  }
10683                }10355                }
10684                container notification {10356                container notification {
10685                  description10357                  description
10686                    "MAC address limit notification action";10358                    "MAC address limit notification action";
10687                  container trap {10359                  container trap {
10688                    must "not(../both or ../none)";10360                    must "not(../both or ../none)";
10689                    presence "Indicates a trap node is configured.";10361                    presence "Indicates a trap node is configured.";
10690                    description10362                    description
10691                      "Generate SNMP trap";10363                      "Generate SNMP trap";
10692                  }10364                  }
10693                  container both {10365                  container both {
10694                    must "not(../trap or ../none)";10366                    must "not(../trap or ../none)";
10695                    presence "Indicates a both node is configured.";10367                    presence "Indicates a both node is configured.";
10696                    description10368                    description
10697                      "Generate syslog message and SNMP trap";10369                      "Generate syslog message and SNMP trap";
10698                  }10370                  }
10699                  container none {10371                  container none {
10700                    must "not(../trap or ../both)";10372                    must "not(../trap or ../both)";
10701                    presence "Indicates a none node is configured.";10373                    presence "Indicates a none node is configured.";
10702                    description10374                    description
10703                      "No notification";10375                      "No notification";
10704                  }10376                  }
10705                }10377                }
10706              }10378              }
10707              container port-down {10379              container port-down {
10708                description10380                description
10709                  "Configure action when port goes down";10381                  "Configure action when port goes down";
10710                container flush {10382                container flush {
10711                  description10383                  description
10712                    "Configure MAC flush when port goes down";10384                    "Configure MAC flush when port goes down";
10713                  container disable {10385                  container disable {
10714                    presence "Indicates a disable node is configured.";10386                    presence "Indicates a disable node is configured.";
10715                    description10387                    description
10716                      "Disable MAC flush when port goes down";10388                      "Disable MAC flush when port goes down";
10717                  }10389                  }
10718                }10390                }
10719              }10391              }
10720              container secure {10392              container secure {
10721                presence "Indicates a secure node is configured.";10393                presence "Indicates a secure node is configured.";
10722                description10394                description
10723                  "MAC Secure configuration commands";10395                  "MAC Secure configuration commands";
10724                container logging {10396                container logging {
10725                  presence "Indicates a logging node is configured.";10397                  presence "Indicates a logging node is configured.";
10726                  description10398                  description
10727                    "Enable Logging";10399                    "Enable Logging";
10728                }10400                }
10729                container threshold {10401                container threshold {
10730                  presence "Indicates a threshold node is configured.";10402                  presence "Indicates a threshold node is configured.";
10731                  description10403                  description
10732                    "Threshold based mac secure";10404                    "Threshold based mac secure";
10733                }10405                }
10734                container action {10406                container action {
10735                  description10407                  description
10736                    "MAC secure enforcement action";10408                    "MAC secure enforcement action";
10737                  container none {10409                  container none {
10738                    must "not(../shutdown)";10410                    must "not(../shutdown)";
10739                    presence "Indicates a none node is configured.";10411                    presence "Indicates a none node is configured.";
10740                    description10412                    description
10741                      "Forward the violating packet and allow the MAC to be relearned";10413                      "Forward the violating packet and allow the MAC to be relearned";
10742                  }10414                  }
10743                  container shutdown {10415                  container shutdown {
10744                    must "not(../none)";10416                    must "not(../none)";
10745                    presence "Indicates a shutdown node is configured.";10417                    presence "Indicates a shutdown node is configured.";
10746                    description10418                    description
10747                      "Shutdown the violating bridge port";10419                      "Shutdown the violating bridge port";
10748                  }10420                  }
10749                }10421                }
10750              }10422              }
10751            }10423            }
10752            leaf description {10424            leaf description {
10753              type string {10425              type string {
10754                length "1..64" {10426                length "1..64" {
10755                  description10427                  description
10756                    "Bridge-Domain description string";10428                    "Bridge-Domain description string";
10757                }10429                }
10758              }10430              }
10759              description10431              description
10760                "Description for Bridge-Domain";10432                "Description for Bridge-Domain";
10761            }10433            }
10762            container member {10434            container member {
10763              description10435              description
10764                "Bridge domain member";10436                "Bridge domain member";
10765              container vnis {10437              container vnis {
10766                description10438                description
10767                  "Assign VxLAN Network Identifier to bridge domain";10439                  "Assign VxLAN Network Identifier to bridge domain";
10768                list vni {10440                list vni {
10769                  key "vni-id";10441                  key "vni-id";
10770                  description10442                  description
10771                    "Assign VxLAN Network Identifier to bridge domain";10443                    "Assign VxLAN Network Identifier to bridge domain";
10772                  leaf vni-id {10444                  leaf vni-id {
10773                    type uint32 {10445                    type uint32 {
10774                      range "1..16777215" {10446                      range "1..16777215" {
10775                        description10447                        description
10776                          "Specify VxLAN Network Identifier value";10448                          "Specify VxLAN Network Identifier value";
10777                      }10449                      }
10778                    }10450                    }
10779                    description10451                    description
10780                      "Assign VxLAN Network Identifier to bridge domain";10452                      "Assign VxLAN Network Identifier to bridge domain";
10781                  }10453                  }
10782                  container static-mac-addresses {10454                  container static-mac-addresses {
10783                    description10455                    description
10784                      "Static MAC address";10456                      "Static MAC address";
10785                    list static-mac-address {10457                    list static-mac-address {
10786                      key "mac-address";10458                      key "mac-address";
10787                      description10459                      description
10788                        "Static MAC address";10460                        "Static MAC address";
10789                      leaf mac-address {10461                      leaf mac-address {
10790                        type yang:mac-address;10462                        type yang:mac-address;
10791                        description10463                        description
10792                          "Static MAC address";10464                          "Static MAC address";
10793                      }10465                      }
10794                      leaf next-hop {10466                      leaf next-hop {
10795                        type inet:ipv4-address-no-zone;10467                        type inet:ipv4-address-no-zone;
10796                        description10468                        description
10797                          "Specify the next hop IP address";10469                          "Specify the next hop IP address";
10798                      }10470                      }
10799                    }10471                    }
10800                  }10472                  }
10801                }10473                }
10802              }10474              }
10803            }10475            }
10804          }10476          }
10805        }10477        }
10806      }10478      }
10807    }10479    }
10808    container pw-classes {10480    container pw-classes {
10809      description10481      description
10810        "Pseudowire class template";10482        "Pseudowire class template";
10811      list pw-class {10483      list pw-class {
10812        key "pw-class-name";10484        key "pw-class-name";
10813        description10485        description
10814          "Pseudowire class template";10486          "Pseudowire class template";
10815        leaf pw-class-name {10487        leaf pw-class-name {
10816          type xr:Cisco-ios-xr-string {10488          type xr:Cisco-ios-xr-string {
10817            length "1..32" {10489            length "1..32" {
10818              description10490              description
10819                "Pseudowire-class name (Max character length: 32)";10491                "Pseudowire-class name (Max character length: 32)";
10820            }10492            }
10821          }10493          }
10822          description10494          description
10823            "Pseudowire class template";10495            "Pseudowire class template";
10824        }10496        }
10825        container encapsulation {10497        container encapsulation {
10826          description10498          description
10827            "Pseudowire encapsulation";10499            "Pseudowire encapsulation";
10828          container mpls {10500          container mpls {
10829            presence "Indicates a mpls node is configured.";10501            presence "Indicates a mpls node is configured.";
10830            description10502            description
10831              "Set pseudowire encapsulation to MPLS";10503              "Set pseudowire encapsulation to MPLS";
10832            container protocol {10504            container protocol {
10833              description10505              description
10834                "Set the dynamic pseudowire signaling protocol";10506                "Set the dynamic pseudowire signaling protocol";
10835              container ldp {10507              container ldp {
10836                presence "Indicates a ldp node is configured.";10508                presence "Indicates a ldp node is configured.";
10837                description10509                description
10838                  "Set LDP as the signaling protocol for this pseudowire class";10510                  "Set LDP as the signaling protocol for this pseudowire class";
10839              }10511              }
10840            }10512            }
10841            container control-word {10513            container control-word {
10842              presence "Indicates a control-word node is configured.";10514              presence "Indicates a control-word node is configured.";
10843              description10515              description
10844                "Enable Control word";10516                "Enable Control word";
10845            }10517            }
10846            container transport-mode {10518            container transport-mode {
10847              if-feature "l2vpn_is_cli_supported";10519              if-feature "l2vpn_is_cli_supported";
10848              description10520              description
10849                "Remote transport mode";10521                "Remote transport mode";
10850              container ethernet {10522              container ethernet {
10851                must "not(../vlan or ../passthrough)";10523                must "not(../vlan or ../passthrough)";
10852                presence "Indicates a ethernet node is configured.";10524                presence "Indicates a ethernet node is configured.";
10853                description10525                description
10854                  "Ethernet port mode";10526                  "Ethernet port mode";
10855              }10527              }
10856              container vlan {10528              container vlan {
10857                must "not(../ethernet or ../passthrough)";10529                must "not(../ethernet or ../passthrough)";
10858                presence "Indicates a vlan node is configured.";10530                presence "Indicates a vlan node is configured.";
10859                description10531                description
10860                  "Vlan tagged mode";10532                  "Vlan tagged mode";
10861              }10533              }
10862              container passthrough {10534              container passthrough {
10863                must "not(../ethernet or ../vlan)";10535                must "not(../ethernet or ../vlan)";
10864                presence "Indicates a passthrough node is configured.";10536                presence "Indicates a passthrough node is configured.";
10865                description10537                description
10866                  "passthrough incoming tags";10538                  "passthrough incoming tags";
10867              }10539              }
10868            }10540            }
10869            container vccv {10541            container vccv {
10870              description10542              description
10871                "VCCV settings";10543                "VCCV settings";
10872              container verification-type {10544              container verification-type {
10873                description10545                description
10874                  "Enable or disable VCCV verification type";10546                  "Enable or disable VCCV verification type";
10875                container none {10547                container none {
10876                  presence "Indicates a none node is configured.";10548                  presence "Indicates a none node is configured.";
10877                  description10549                  description
10878                    "No VCCV verification";10550                    "No VCCV verification";
10879                }10551                }
10880              }10552              }
10881            }10553            }
10882            container sequencing {10554            container sequencing {
10883              description10555              description
10884                "Sequencing";10556                "Sequencing";
10885              container transmit {10557              container transmit {
10886                must "not(../receive or ../both)";10558                must "not(../receive or ../both)";
10887                presence "Indicates a transmit node is configured.";10559                presence "Indicates a transmit node is configured.";
10888                description10560                description
10889                  "Sequencing on transmit side";10561                  "Sequencing on transmit side";
10890                leaf resync {10562                leaf resync {
10891                  type uint32 {10563                  type uint32 {
10892                    range "5..65535" {10564                    range "5..65535" {
10893                      description10565                      description
10894                        "Resync threshold";10566                        "Resync threshold";
10895                    }10567                    }
10896                  }10568                  }
10897                  description10569                  description
10898                    "Set the threshold for out-of-sequence packets before resync";10570                    "Set the threshold for out-of-sequence packets before resync";
10899                }10571                }
10900              }10572              }
10901              container receive {10573              container receive {
10902                must "not(../transmit or ../both)";10574                must "not(../transmit or ../both)";
10903                presence "Indicates a receive node is configured.";10575                presence "Indicates a receive node is configured.";
10904                description10576                description
10905                  "Sequencing on receive side";10577                  "Sequencing on receive side";
10906                leaf resync {10578                leaf resync {
10907                  type uint32 {10579                  type uint32 {
10908                    range "5..65535" {10580                    range "5..65535" {
10909                      description10581                      description
10910                        "Resync threshold";10582                        "Resync threshold";
10911                    }10583                    }
10912                  }10584                  }
10913                  description10585                  description
10914                    "Set the threshold for out-of-sequence packets before resync";10586                    "Set the threshold for out-of-sequence packets before resync";
10915                }10587                }
10916              }10588              }
10917              container both {10589              container both {
10918                must "not(../transmit or ../receive)";10590                must "not(../transmit or ../receive)";
10919                presence "Indicates a both node is configured.";10591                presence "Indicates a both node is configured.";
10920                description10592                description
10921                  "Sequencing on both transmit and receive side";10593                  "Sequencing on both transmit and receive side";
10922                leaf resync {10594                leaf resync {
10923                  type uint32 {10595                  type uint32 {
10924                    range "5..65535" {10596                    range "5..65535" {
10925                      description10597                      description
10926                        "Resync threshold";10598                        "Resync threshold";
10927                    }10599                    }
10928                  }10600                  }
10929                  description10601                  description
10930                    "Set the threshold for out-of-sequence packets before resync";10602                    "Set the threshold for out-of-sequence packets before resync";
10931                }10603                }
10932              }10604              }
10933            }10605            }
10934            container preferred-path {10606            container preferred-path {
10935              description10607              description
10936                "Preferred path tunnel settings";10608                "Preferred path tunnel settings";
10937              container interface {10609              container interface {
10938                description10610                description
10939                  "Use tunnel interface for preferred path";10611                  "Use tunnel interface for preferred path";
10940                container tunnel-te {10612                container tunnel-te {
10941                  description10613                  description
10942                    "Specify TE tunnel interface name for preferred path";10614                    "Specify TE tunnel interface name for preferred path";
10943                  leaf tunnel-number {10615                  leaf tunnel-number {
10944                    type uint32 {10616                    type uint32 {
10945                      range "0..65535" {10617                      range "0..65535" {
10946                        description10618                        description
10947                          "Specify tunnel number for preferred path";10619                          "Specify tunnel number for preferred path";
10948                      }10620                      }
10949                    }10621                    }
10950                    must10622                    must
10951                      "not(../tunnel-name or ../../tunnel-ip or10623                      "not(../tunnel-name or ../../tunnel-ip or
10952                           ../../tunnel-tp or ../../../sr-te/policy)";10624                           ../../tunnel-tp or ../../../sr-te/policy)";
10953                    description10625                    description
10954                      "Specify tunnel number for preferred path";10626                      "Specify tunnel number for preferred path";
10955                  }10627                  }
10956                  leaf tunnel-name {10628                  leaf tunnel-name {
10957                    type xr:Cisco-ios-xr-string {10629                    type xr:Cisco-ios-xr-string {
10958                      length "1..60" {10630                      length "1..60" {
10959                        description10631                        description
10960                          "Specify named tunnel for preferred path";10632                          "Specify named tunnel for preferred path";
10961                      }10633                      }
10962                    }10634                    }
10963                    must10635                    must
10964                      "not(../tunnel-number or ../../tunnel-ip or10636                      "not(../tunnel-number or ../../tunnel-ip or
10965                           ../../tunnel-tp or ../../../sr-te/policy)";10637                           ../../tunnel-tp or ../../../sr-te/policy)";
10966                    description10638                    description
10967                      "Specify named tunnel for preferred path";10639                      "Specify named tunnel for preferred path";
10968                  }10640                  }
10969                }10641                }
10970                leaf tunnel-ip {10642                leaf tunnel-ip {
10971                  type uint32 {10643                  type uint32 {
10972                    range "0..65535" {10644                    range "0..65535" {
10973                      description10645                      description
10974                        "Specify tunnel number for preferred path";10646                        "Specify tunnel number for preferred path";
10975                    }10647                    }
10976                  }10648                  }
10977                  must10649                  must
10978                    "not(../tunnel-te/tunnel-number or ../tunnel-te/tunnel-name or10650                    "not(../tunnel-te/tunnel-number or ../tunnel-te/tunnel-name or
10979                         ../tunnel-tp or ../../sr-te/policy)";10651                         ../tunnel-tp or ../../sr-te/policy)";
10980                  description10652                  description
10981                    "Specify IP tunnel interface name for preferred path";10653                    "Specify IP tunnel interface name for preferred path";
10982                }10654                }
10983                leaf tunnel-tp {10655                leaf tunnel-tp {
10984                  type uint32 {10656                  type uint32 {
10985                    range "0..65535" {10657                    range "0..65535" {
10986                      description10658                      description
10987                        "Specify tunnel number for preferred path";10659                        "Specify tunnel number for preferred path";
10988                    }10660                    }
10989                  }10661                  }
10990                  must10662                  must
10991                    "not(../tunnel-te/tunnel-number or ../tunnel-te/tunnel-name or10663                    "not(../tunnel-te/tunnel-number or ../tunnel-te/tunnel-name or
10992                         ../tunnel-ip or ../../sr-te/policy)";10664                         ../tunnel-ip or ../../sr-te/policy)";
10993                  description10665                  description
10994                    "Specify TP tunnel interface name for preferred path";10666                    "Specify TP tunnel interface name for preferred path";
10995                }10667                }
10996              }10668              }
10997              container sr-te {10669              container sr-te {
10998                description10670                description
10999                  "Use segment-routing traffic-engineering for preferred path";10671                  "Use segment-routing traffic-engineering for preferred path";
11000                leaf policy {10672                leaf policy {
11001                  type xr:Cisco-ios-xr-string {10673                  type xr:Cisco-ios-xr-string {
11002                    length "1..60" {10674                    length "1..60" {
11003                      description10675                      description
11004                        "Name of SR TE policy";10676                        "Name of SR TE policy";
11005                    }10677                    }
11006                  }10678                  }
11007                  must10679                  must
11008                    "not(../../interface/tunnel-te/tunnel-number or10680                    "not(../../interface/tunnel-te/tunnel-number or
11009                         ../../interface/tunnel-te/tunnel-name or10681                         ../../interface/tunnel-te/tunnel-name or
11010                         ../../interface/tunnel-ip or10682                         ../../interface/tunnel-ip or
11011                         ../../interface/tunnel-tp)";10683                         ../../interface/tunnel-tp)";
11012                  description10684                  description
11013                    "Specify SR TE policy for preferred path";10685                    "Specify SR TE policy for preferred path";
11014                }10686                }
11015              }10687              }
11016              container fallback {10688              container fallback {
11017                description10689                description
11018                  "Fallback option for preferred path";10690                  "Fallback option for preferred path";
11019                container disable {10691                container disable {
11020                  must10692                  must
11021                    "../../interface/tunnel-te/tunnel-number or10693                    "../../interface/tunnel-te/tunnel-number or
11022                     ../../interface/tunnel-te/tunnel-name or10694                     ../../interface/tunnel-te/tunnel-name or
11023                     ../../interface/tunnel-ip or10695                     ../../interface/tunnel-ip or
11024                     ../../interface/tunnel-tp or10696                     ../../interface/tunnel-tp or
11025                     ../../sr-te/policy";10697                     ../../sr-te/policy";
11026                  presence "Indicates a disable node is configured.";10698                  presence "Indicates a disable node is configured.";
11027                  description10699                  description
11028                    "Disable fallback for preferred path";10700                    "Disable fallback for preferred path";
11029                }10701                }
11030              }10702              }
11031            }10703            }
11032            container switching-tlv {10704            container switching-tlv {
11033              description10705              description
11034                "PW switching point TLV";10706                "PW switching point TLV";
11035              container hide {10707              container hide {
11036                presence "Indicates a hide node is configured.";10708                presence "Indicates a hide node is configured.";
11037                description10709                description
11038                  "Hide TLV";10710                  "Hide TLV";
11039              }10711              }
11040            }10712            }
11041            container tag-rewrite {10713            container tag-rewrite {
11042              description10714              description
11043                "tag rewrite mode";10715                "tag rewrite mode";
11044              container ingress {10716              container ingress {
11045                description10717                description
11046                  "configuring ingress mode";10718                  "configuring ingress mode";
11047                leaf vlan {10719                leaf vlan {
11048                  type uint32 {10720                  type uint32 {
11049                    range "1..4094" {10721                    range "1..4094" {
11050                      description10722                      description
11051                        "vlan tagged mode";10723                        "vlan tagged mode";
11052                    }10724                    }
11053                  }10725                  }
11054                  description10726                  description
11055                    "vlan tagged mode";10727                    "vlan tagged mode";
11056                }10728                }
11057              }10729              }
11058            }10730            }
11059            container redundancy {10731            container redundancy {
11060              if-feature "l2vpn_is_cli_supported";10732              if-feature "l2vpn_is_cli_supported";
11061              description10733              description
11062                "PW redundancy settings";10734                "PW redundancy settings";
11063              container one-way {10735              container one-way {
11064                presence "Indicates a one-way node is configured.";10736                presence "Indicates a one-way node is configured.";
11065                description10737                description
11066                  "Force one-way PW redundancy behavior in Redundancy Group";10738                  "Force one-way PW redundancy behavior in Redundancy Group";
11067              }10739              }
11068              leaf initial-delay {10740              leaf initial-delay {
11069                type uint32 {10741                type uint32 {
11070                  range "0..120" {10742                  range "0..120" {
11071                    description10743                    description
11072                      "Time in seconds (round to 10). The default is 60";10744                      "Time in seconds (round to 10). The default is 60";
11073                  }10745                  }
11074                }10746                }
11075                description10747                description
11076                  "Initial delay before activating the redundant PW";10748                  "Initial delay before activating the redundant PW";
11077              }10749              }
11078            }10750            }
11079            container load-balancing {10751            container load-balancing {
11080              description10752              description
11081                "PW class Load Balancing";10753                "PW class Load Balancing";
11082              container pw-label {10754              container pw-label {
11083                presence "Indicates a pw-label node is configured.";10755                presence "Indicates a pw-label node is configured.";
11084                description10756                description
11085                  "Enable PW VC label based load balancing";10757                  "Enable PW VC label based load balancing";
11086              }10758              }
11087              container flow-label {10759              container flow-label {
11088                description10760                description
11089                  "Flow label based load balancing setting";10761                  "Flow label based load balancing setting";
11090                container transmit {10762                container transmit {
11091                  must "not(../receive or ../both)";10763                  must "not(../receive or ../both)";
11092                  presence "Indicates a transmit node is configured.";10764                  presence "Indicates a transmit node is configured.";
11093                  description10765                  description
11094                    "Insert Flow label on transmit ";10766                    "Insert Flow label on transmit ";
11095                  container static {10767                  container static {
11096                    presence "Indicates a static node is configured.";10768                    presence "Indicates a static node is configured.";
11097                    description10769                    description
11098                      "Set Flow label parameters statically";10770                      "Set Flow label parameters statically";
11099                  }10771                  }
11100                }10772                }
11101                container receive {10773                container receive {
11102                  must "not(../transmit or ../both)";10774                  must "not(../transmit or ../both)";
11103                  presence "Indicates a receive node is configured.";10775                  presence "Indicates a receive node is configured.";
11104                  description10776                  description
11105                    "Discard Flow label on receive";10777                    "Discard Flow label on receive";
11106                  container static {10778                  container static {
11107                    presence "Indicates a static node is configured.";10779                    presence "Indicates a static node is configured.";
11108                    description10780                    description
11109                      "Set Flow label parameters statically";10781                      "Set Flow label parameters statically";
11110                  }10782                  }
11111                }10783                }
11112                container both {10784                container both {
11113                  must "not(../transmit or ../receive)";10785                  must "not(../transmit or ../receive)";
11114                  presence "Indicates a both node is configured.";10786                  presence "Indicates a both node is configured.";
11115                  description10787                  description
11116                    "Insert/Discard Flow label on transmit/recceive";10788                    "Insert/Discard Flow label on transmit/recceive";
11117                  container static {10789                  container static {
11118                    presence "Indicates a static node is configured.";10790                    presence "Indicates a static node is configured.";
11119                    description10791                    description
11120                      "Set Flow label parameters statically";10792                      "Set Flow label parameters statically";
11121                  }10793                  }
11122                }10794                }
11123                container code {10795                container code {
11124                  description10796                  description
11125                    "Flow label TLV code";10797                    "Flow label TLV code";
11126                  container one7 {10798                  container one7 {
11127                    presence "Indicates a one7 node is configured.";10799                    presence "Indicates a one7 node is configured.";
11128                    description10800                    description
11129                      "Legacy code value";10801                      "Legacy code value";
11130                    container disable {10802                    container disable {
11131                      presence "Indicates a disable node is configured.";10803                      presence "Indicates a disable node is configured.";
11132                      description10804                      description
11133                        "Disables sending code 17 TLV";10805                        "Disables sending code 17 TLV";
11134                    }10806                    }
11135                  }10807                  }
11136                }10808                }
11137              }10809              }
11138            }10810            }
11139            container ipv4 {10811            container ipv4 {
11140              description10812              description
11141                "Set the local source IPv4 address";10813                "Set the local source IPv4 address";
11142              leaf source {10814              leaf source {
11143                type inet:ipv4-address-no-zone;10815                type inet:ipv4-address-no-zone;
11144                description10816                description
11145                  "The local source IPv4 address";10817                  "The local source IPv4 address";
11146              }10818              }
11147            }10819            }
11148          }10820          }
11149          container l2tpv3 {10821          container l2tpv3 {
11150            presence "Indicates a l2tpv3 node is configured.";10822            presence "Indicates a l2tpv3 node is configured.";
11151            description10823            description
11152              "Set pseudowire encapsulation to L2TPV3";10824              "Set pseudowire encapsulation to L2TPV3";
11153            container protocol {10825            container protocol {
11154              description10826              description
11155                "Set the dynamic pseudowire signaling protocol";10827                "Set the dynamic pseudowire signaling protocol";
11156              container l2tpv3 {10828              container l2tpv3 {
11157                presence "Indicates a l2tpv3 node is configured.";10829                presence "Indicates a l2tpv3 node is configured.";
11158                description10830                description
11159                  "Set L2TPv3 as the signaling protocol for this pseudowire class";10831                  "Set L2TPv3 as the signaling protocol for this pseudowire class";
11160                leaf class {10832                leaf class {
11161                  type xr:Cisco-ios-xr-string {10833                  type xr:Cisco-ios-xr-string {
11162                    length "1..32" {10834                    length "1..32" {
11163                      description10835                      description
11164                        "The L2TPv3 class name";10836                        "The L2TPv3 class name";
11165                    }10837                    }
11166                    pattern "[a-zA-Z][-_.a-z0-9A-Z]*";10838                    pattern "[a-zA-Z][-_.a-z0-9A-Z]*";
11167                  }10839                  }
11168                  description10840                  description
11169                    "L2TPv3 class";10841                    "L2TPv3 class";
11170                }10842                }
11171              }10843              }
11172            }10844            }
11173            container dfbit {10845            container dfbit {
11174              description10846              description
11175                "Settings of the Don't Fragment Bit (DFBIT)";10847                "Settings of the Don't Fragment Bit (DFBIT)";
11176              container set {10848              container set {
11177                presence "Indicates a set node is configured.";10849                presence "Indicates a set node is configured.";
11178                description10850                description
11179                  "Set the DFBIT to 1";10851                  "Set the DFBIT to 1";
11180              }10852              }
11181            }10853            }
11182            container tos {10854            container tos {
11183              description10855              description
11184                "Setting of Type of Service (ToS)";10856                "Setting of Type of Service (ToS)";
11185              leaf value {10857              leaf value {
11186                type uint32 {10858                type uint32 {
11187                  range "0..255" {10859                  range "0..255" {
11188                    description10860                    description
11189                      "The value of the ToS for this L2TPv3 pseudowire class";10861                      "The value of the ToS for this L2TPv3 pseudowire class";
11190                  }10862                  }
11191                }10863                }
11192                must "../reflect";10864                must "../reflect";
11193                description10865                description
11194                  "Set the value of the ToS";10866                  "Set the value of the ToS";
11195              }10867              }
11196              container reflect {10868              container reflect {
11197                must "../value";10869                must "../value";
11198                presence "Indicates a reflect node is configured.";10870                presence "Indicates a reflect node is configured.";
11199                description10871                description
11200                  "Reflect the TOS";10872                  "Reflect the TOS";
11201              }10873              }
11202            }10874            }
11203            leaf ttl {10875            leaf ttl {
11204              type uint32 {10876              type uint32 {
11205                range "1..255" {10877                range "1..255" {
11206                  description10878                  description
11207                    "TTL value";10879                    "TTL value";
11208                }10880                }
11209              }10881              }
11210              description10882              description
11211                "Set the Time To Live (TTL)";10883                "Set the Time To Live (TTL)";
11212            }10884            }
11213            container pmtu {10885            container pmtu {
11214              presence "Indicates a pmtu node is configured.";10886              presence "Indicates a pmtu node is configured.";
11215              description10887              description
11216                "Path Maximum Transmission Unit (PMTU)";10888                "Path Maximum Transmission Unit (PMTU)";
11217              leaf max {10889              leaf max {
11218                type uint32 {10890                type uint32 {
11219                  range "68..65535" {10891                  range "68..65535" {
11220                    description10892                    description
11221                      "The value of the Maximum allowable session MTU";10893                      "The value of the Maximum allowable session MTU";
11222                  }10894                  }
11223                }10895                }
11224                description10896                description
11225                  "Set the Maximum allowable session MTU";10897                  "Set the Maximum allowable session MTU";
11226              }10898              }
11227            }10899            }
11228            container ipv4 {10900            container ipv4 {
11229              description10901              description
11230                "Set the local source IPv4 address";10902                "Set the local source IPv4 address";
11231              leaf source {10903              leaf source {
11232                type inet:ipv4-address-no-zone;10904                type inet:ipv4-address-no-zone;
11233                description10905                description
11234                  "The local source IPv4 address";10906                  "The local source IPv4 address";
11235              }10907              }
11236            }10908            }
11237            container cookie {10909            container cookie {
11238              description10910              description
11239                "L2TPv3 cookie setting";10911                "L2TPv3 cookie setting";
11240              container size {10912              container size {
11241                description10913                description
11242                  "L2TPv3 cookie size";10914                  "L2TPv3 cookie size";
11243                container zero {10915                container zero {
11244                  must "not(../four or ../eight)";10916                  must "not(../four or ../eight)";
11245                  presence "Indicates a zero node is configured.";10917                  presence "Indicates a zero node is configured.";
11246                  description10918                  description
11247                    "The cookie size is zero bytes";10919                    "The cookie size is zero bytes";
11248                }10920                }
11249                container four {10921                container four {
11250                  must "not(../zero or ../eight)";10922                  must "not(../zero or ../eight)";
11251                  presence "Indicates a four node is configured.";10923                  presence "Indicates a four node is configured.";
11252                  description10924                  description
11253                    "The cookie size is four bytes";10925                    "The cookie size is four bytes";
11254                }10926                }
11255                container eight {10927                container eight {
11256                  must "not(../zero or ../four)";10928                  must "not(../zero or ../four)";
11257                  presence "Indicates a eight node is configured.";10929                  presence "Indicates a eight node is configured.";
11258                  description10930                  description
11259                    "The cookie size is eight bytes";10931                    "The cookie size is eight bytes";
11260                }10932                }
11261              }10933              }
11262            }10934            }
11263            container sequencing {10935            container sequencing {
11264              description10936              description
11265                "Sequencing";10937                "Sequencing";
11266              container both {10938              container both {
11267                presence "Indicates a both node is configured.";10939                presence "Indicates a both node is configured.";
11268                description10940                description
11269                  "Sequencing on both transmit and receive side";10941                  "Sequencing on both transmit and receive side";
11270                leaf resync {10942                leaf resync {
11271                  type uint32 {10943                  type uint32 {
11272                    range "5..65535" {10944                    range "5..65535" {
11273                      description10945                      description
11274                        "Resync threshold";10946                        "Resync threshold";
11275                    }10947                    }
11276                  }10948                  }
11277                  description10949                  description
11278                    "Set the threshold for out-of-sequence packets before resync";10950                    "Set the threshold for out-of-sequence packets before resync";
11279                }10951                }
11280              }10952              }
11281            }10953            }
11282            container transport-mode {10954            container transport-mode {
11283              description10955              description
11284                "Remote transport mode";10956                "Remote transport mode";
11285              container ethernet {10957              container ethernet {
11286                must "not(../vlan)";10958                must "not(../vlan)";
11287                presence "Indicates a ethernet node is configured.";10959                presence "Indicates a ethernet node is configured.";
11288                description10960                description
11289                  "Ethernet port mode";10961                  "Ethernet port mode";
11290              }10962              }
11291              container vlan {10963              container vlan {
11292                must "not(../ethernet)";10964                must "not(../ethernet)";
11293                presence "Indicates a vlan node is configured.";10965                presence "Indicates a vlan node is configured.";
11294                description10966                description
11295                  "Vlan tagged mode";10967                  "Vlan tagged mode";
11296              }10968              }
11297            }10969            }
11298          }10970          }
11299        }10971        }
11300        container backup {10972        container backup {
11301          description10973          description
11302            "Pseudowire backup";10974            "Pseudowire backup";
11303          container disable {10975          container disable {
11304            description10976            description
11305              "Disable backup when primary comes back up";10977              "Disable backup when primary comes back up";
11306            leaf delay {10978            leaf delay {
11307              type uint32 {10979              type uint32 {
11308                range "0..180" {10980                range "0..180" {
11309                  description10981                  description
11310                    "Delay in seconds";10982                    "Delay in seconds";
11311                }10983                }
11312              }10984              }
11313              must "not(../never)";10985              must "not(../never)";
11314              description10986              description
11315                "Disable backup after a specified delay";10987                "Disable backup after a specified delay";
11316            }10988            }
11317            container never {10989            container never {
11318              must "not(../delay)";10990              must "not(../delay)";
11319              presence "Indicates a never node is configured.";10991              presence "Indicates a never node is configured.";
11320              description10992              description
11321                "Never disable backup";10993                "Never disable backup";
11322            }10994            }
11323          }10995          }
11324        }10996        }
11325        container mac-withdraw {10997        container mac-withdraw {
11326          presence "Indicates a mac-withdraw node is configured.";10998          presence "Indicates a mac-withdraw node is configured.";
11327          description10999          description
11328            "Send MAC withdraw message when PW becomes active";11000            "Send MAC withdraw message when PW becomes active";
11329        }11001        }
11330      }11002      }
11331    }11003    }
11332    container ignore-mtu-mismatch-ad {11004    container ignore-mtu-mismatch-ad {
11333      presence "Indicates a ignore-mtu-mismatch-ad node is configured.";11005      presence "Indicates a ignore-mtu-mismatch-ad node is configured.";
11334      description11006      description
11335        "Ignore MTU mismatch for auto-discovered PWs";11007        "Ignore MTU mismatch for auto-discovered PWs";
11336    }11008    }
11337    container ignore-mtu-mismatch {11009    container ignore-mtu-mismatch {
11338      presence "Indicates a ignore-mtu-mismatch node is configured.";11010      presence "Indicates a ignore-mtu-mismatch node is configured.";
11339      description11011      description
11340        "Ignore MTU mismatch for all L2VPN";11012        "Ignore MTU mismatch for all L2VPN";
11341    }11013    }
11342    leaf description {11014    leaf description {
11343      type string {11015      type string {
11344        length "1..64" {11016        length "1..64" {
11345          description11017          description
11346            "l2vpn global description string - maximum 64 characters";11018            "l2vpn global description string - maximum 64 characters";
11347        }11019        }
11348      }11020      }
11349      description11021      description
11350        "Multi segment psedowire global description";11022        "Multi segment psedowire global description";
11351    }11023    }
11352    container pw-status {11024    container pw-status {
11353      description11025      description
11354        "Configure PW status";11026        "Configure PW status";
11355      container disable {11027      container disable {
11356        presence "Indicates a disable node is configured.";11028        presence "Indicates a disable node is configured.";
11357        description11029        description
11358          "Disable PW status";11030          "Disable PW status";
11359      }11031      }
11360    }11032    }
11361    leaf router-id {11033    leaf router-id {
11362      if-feature "l2vpn_is_cli_supported";11034      if-feature "l2vpn_is_cli_supported";
11363      type inet:ipv4-address-no-zone;11035      type inet:ipv4-address-no-zone;
11364      description11036      description
11365        "Global L2VPN Router ID";11037        "Global L2VPN Router ID";
11366    }11038    }
11367    container load-balancing {11039    container load-balancing {
11368      description11040      description
11369        "Global L2VPN Load Balancing";11041        "Global L2VPN Load Balancing";
11370      container flow {11042      container flow {
11371        description11043        description
11372          "Enable Flow based load balancing";11044          "Enable Flow based load balancing";
11373        container src-dst-mac {11045        container src-dst-mac {
11374          must "not(../src-dst-ip)";11046          must "not(../src-dst-ip)";
11375          presence "Indicates a src-dst-mac node is configured.";11047          presence "Indicates a src-dst-mac node is configured.";
11376          description11048          description
11377            "Use source and destination MAC addresses for hashing";11049            "Use source and destination MAC addresses for hashing";
11378        }11050        }
11379        container src-dst-ip {11051        container src-dst-ip {
11380          must "not(../src-dst-mac)";11052          must "not(../src-dst-mac)";
11381          presence "Indicates a src-dst-ip node is configured.";11053          presence "Indicates a src-dst-ip node is configured.";
11382          description11054          description
11383            "Use source and destination IP addresses for hashing";11055            "Use source and destination IP addresses for hashing";
11384        }11056        }
11385      }11057      }
11386    }11058    }
11387    container capability {11059    container capability {
11388      description11060      description
11389        "Global capability mode";11061        "Global capability mode";
11390      container single-mode {11062      container single-mode {
11391        must "not(../high-mode)";11063        must "not(../high-mode)";
11392        presence "Indicates a single-mode node is configured.";11064        presence "Indicates a single-mode node is configured.";
11393        description11065        description
11394          "Disable global capability re-computation";11066          "Disable global capability re-computation";
11395      }11067      }
11396      container high-mode {11068      container high-mode {
11397        must "not(../single-mode)";11069        must "not(../single-mode)";
11398        presence "Indicates a high-mode node is configured.";11070        presence "Indicates a high-mode node is configured.";
11399        description11071        description
11400          "Compute global capability as the highest node capability";11072          "Compute global capability as the highest node capability";
11401      }11073      }
11402    }11074    }
11403    container pw-oam {11075    container pw-oam {
11404      description11076      description
11405        "PW OAM";11077        "PW OAM";
11406      container refresh {11078      container refresh {
11407        description11079        description
11408          "Refresh interval";11080          "Refresh interval";
11409        leaf transmit {11081        leaf transmit {
11410          type uint32 {11082          type uint32 {
11411            range "1..4095" {11083            range "1..4095" {
11412              description11084              description
11413                "Seconds";11085                "Seconds";
11414            }11086            }
11415          }11087          }
11416          description11088          description
11417            "Transmit";11089            "Transmit";
11418        }11090        }
11419      }11091      }
11420    }11092    }
11421    container tcn-propagation {11093    container tcn-propagation {
11422      presence "Indicates a tcn-propagation node is configured.";11094      presence "Indicates a tcn-propagation node is configured.";
11423      description11095      description
11424        "Enable topology change notification propagation";11096        "Enable topology change notification propagation";
11425    }11097    }
11426    container pw-grouping {11098    container pw-grouping {
11427      presence "Indicates a pw-grouping node is configured.";11099      presence "Indicates a pw-grouping node is configured.";
11428      description11100      description
11429        "Enable PW-Grouping";11101        "Enable PW-Grouping";
11430    }11102    }
11431    container neighbors {11103    container neighbors {
11432      description11104      description
11433        "neighbor submode";11105        "neighbor submode";
11434      container all {11106      container all {
11435        description11107        description
11436          "all neighbors";11108          "all neighbors";
11437        container ldp {11109        container ldp {
11438          description11110          description
11439            "LDP protocol";11111            "LDP protocol";
11440          container flap {11112          container flap {
11441            presence "Indicates a flap node is configured.";11113            presence "Indicates a flap node is configured.";
11442            description11114            description
11443              "Forcing targetted-sesion flapping";11115              "Forcing targetted-sesion flapping";
11444          }11116          }
11445        }11117        }
11446      }11118      }
11447    }11119    }
11448    container mac {11120    container mac {
11449      description11121      description
11450        "Global MAC commands";11122        "Global MAC commands";
11451      container limit {11123      container limit {
11452        description11124        description
11453          "Global MAC limit commands";11125          "Global MAC limit commands";
11454        leaf threshold {11126        leaf threshold {
11455          type uint32 {11127          type uint32 {
11456            range "1..100" {11128            range "1..100" {
11457              description11129              description
11458                "Percentage 1 to 100 (default 75%)";11130                "Percentage 1 to 100 (default 75%)";
11459            }11131            }
11460          }11132          }
11461          description11133          description
11462            "Global MAC limit threshold";11134            "Global MAC limit threshold";
11463        }11135        }
11464      }11136      }
11465    }11137    }
11466    container xconnect {11138    container xconnect {
11467      description11139      description
11468        "Configure cross connect commands";11140        "Configure cross connect commands";
11469      container groups {11141      container groups {
11470        description11142        description
11471          "Specify the group the cross connects belong to";11143          "Specify the group the cross connects belong to";
11472        list group {11144        list group {
11473          key "group-name";11145          key "group-name";
11474          description11146          description
11475            "Specify the group the cross connects belong to";11147            "Specify the group the cross connects belong to";
11476          leaf group-name {11148          leaf group-name {
11477            type xr:Cisco-ios-xr-string {11149            type xr:Cisco-ios-xr-string {
11478              length "1..32" {11150              length "1..32" {
11479                description11151                description
11480                  "Name of the cross connects group";11152                  "Name of the cross connects group";
11481              }11153              }
11482            }11154            }
11483            description11155            description
11484              "Specify the group the cross connects belong to";11156              "Specify the group the cross connects belong to";
11485          }11157          }
11486          container p2ps {11158          container p2ps {
11487            description11159            description
11488              "Configure point to point cross connect commands";11160              "Configure point to point cross connect commands";
11489            list p2p {11161            list p2p {
11490              key "p2p-xconnect-name";11162              key "p2p-xconnect-name";
11491              description11163              description
11492                "Configure point to point cross connect commands";11164                "Configure point to point cross connect commands";
11493              leaf p2p-xconnect-name {11165              leaf p2p-xconnect-name {
11494                type xr:Cisco-ios-xr-string {11166                type xr:Cisco-ios-xr-string {
11495                  length "1..38" {11167                  length "1..38" {
11496                    description11168                    description
11497                      "Name of the point to point cross connect";11169                      "Name of the point to point cross connect";
11498                  }11170                  }
11499                }11171                }
11500                description11172                description
11501                  "Configure point to point cross connect commands";11173                  "Configure point to point cross connect commands";
11502              }11174              }
11503              container interfaces {11175              container interfaces {
11504                description11176                description
11505                  "Specify the attachment circuit ";11177                  "Specify the attachment circuit ";
11506                list interface {11178                list interface {
11507                  key "interface-name";11179                  key "interface-name";
11508                  description11180                  description
11509                    "Specify (sub-)interface name to cross connect";11181                    "Specify (sub-)interface name to cross connect";
11510                  leaf interface-name {11182                  leaf interface-name {
11511                    type xr:Interface-name;11183                    type xr:Interface-name;
11512                    description11184                    description
11513                      "Specify (sub-)interface name to cross connect";11185                      "Specify (sub-)interface name to cross connect";
11514                  }11186                  }
11515                }11187                }
11516              }11188              }
11517              leaf description {11189              leaf description {
11518                type string {11190                type string {
11519                  length "1..64" {11191                  length "1..64" {
11520                    description11192                    description
11521                      "Cross connect description string";11193                      "Cross connect description string";
11522                  }11194                  }
11523                }11195                }
11524                description11196                description
11525                  "Description for cross connect";11197                  "Description for cross connect";
11526              }11198              }
11527              container vpws-seamless-integration {11199              container vpws-seamless-integration {
11528                if-feature "l2vpn_platform_vpws_seamless_integration_supported";11200                if-feature "l2vpn_platform_vpws_seamless_integration_supported";
11529                presence "Indicates a vpws-seamless-integration node is configured.";11201                presence "Indicates a vpws-seamless-integration node is configured.";
11530                description11202                description
11531                  "EVPN-VPWS Seamless Integration with Legacy VPWS";11203                  "EVPN-VPWS Seamless Integration with Legacy VPWS";
11532              }11204              }
11533              container interworking {11205              container interworking {
11534                description11206                description
11535                  "Set attachment circuit interworking";11207                  "Set attachment circuit interworking";
11536                container ipv4 {11208                container ipv4 {
11537                  must "not(../ethernet)";11209                  must "not(../ethernet)";
11538                  presence "Indicates a ipv4 node is configured.";11210                  presence "Indicates a ipv4 node is configured.";
11539                  description11211                  description
11540                    "IPv4 interworking";11212                    "IPv4 interworking";
11541                }11213                }
11542                container ethernet {11214                container ethernet {
11543                  must "not(../ipv4)";11215                  must "not(../ipv4)";
11544                  presence "Indicates a ethernet node is configured.";11216                  presence "Indicates a ethernet node is configured.";
11545                  description11217                  description
11546                    "Ethernet interworking";11218                    "Ethernet interworking";
11547                }11219                }
11548              }11220              }
11549              container backup {11221              container backup {
11550                if-feature "l2vpn_p2p_backup_supported";11222                if-feature "l2vpn_p2p_backup_supported";
11551                description11223                description
11552                  "Specify backup to be shared by p2p xconnect segments";11224                  "Specify backup to be shared by p2p xconnect segments";
11553                list interface {11225                list interface {
11554                  key "interface-name";11226                  key "interface-name";
11555                  description11227                  description
11556                    "Specify the attachment circuit";11228                    "Specify the attachment circuit";
11557                  leaf interface-name {11229                  leaf interface-name {
11558                    type xr:Interface-name;11230                    type xr:Interface-name;
11559                    description11231                    description
11560                      "Specify the attachment circuit";11232                      "Specify the attachment circuit";
11561                  }11233                  }
11562                }11234                }
11563              }11235              }
11564              container neighbor {11236              container neighbor {
11565                description11237                description
11566                  "Specify the peer to cross connect";11238                  "Specify the peer to cross connect";
11567                container ipv4s {11239                container ipv4s {
11568                  description11240                  description
11569                    "IPv4";11241                    "IPv4";
11570                  list ipv4 {11242                  list ipv4 {
11571                    key "address pw-id";11243                    key "address pw-id";
11572                    description11244                    description
11573                      "IPv4";11245                      "IPv4";
11574                    leaf address {11246                    leaf address {
11575                      type inet:ipv4-address-no-zone;11247                      type inet:ipv4-address-no-zone;
11576                      description11248                      description
11577                        "IPv4";11249                        "IPv4";
n11578                    }n
11579                    leaf pw-id {
11580                      type uint32 {
11581                        range "1..4294967295" {
11582                          description
11583                            "Pseudowire ID";
11584                        }
11585                      }
11586                      description
11587                        "Specify the pseudowire id";
11588                    }
11589                    container backup {
11590                      description
11591                        "Backup pseudowire for the cross connect";
11592                      container neighbors {
11593                        description
11594                          "Specify the peer to cross connect";
11595                        list neighbor {
11596                          key "address pw-id";
11597                          description
11598                            "Specify the peer to cross connect";
11599                          leaf address {
11600                            type inet:ipv4-address-no-zone;
11601                            description
11602                              "Specify the peer to cross connect";
11603                          }
11604                          leaf pw-id {
11605                            type uint32 {
11606                              range "1..4294967295" {
11607                                description
11608                                  "Pseudowire ID";
11609                              }
11610                            }
11611                            description
11612                              "Specify the pseudowire id";
11613                          }
11614                          container mpls {
11615                            description
11616                              "MPLS L2VPN PW command";
11617                            container static {
11618                              description
11619                                "MPLS L2VPN static settings";
11620                              container label {
11621                                description
11622                                  "MPLS L2VPN static labels";
11623                                leaf local {
11624                                  type uint32 {
11625                                    range "16..1048575" {
11626                                      description
11627                                        "Local pseudowire label";
11628                                    }
11629                                  }
11630                                  must "../remote";
11631                                  description
11632                                    "Local pseudowire label";
11633                                }
11634                                leaf remote {
11635                                  type uint32 {
11636                                    range "16..1048575" {
11637                                      description
11638                                        "Remote pseudowire label";
11639                                    }
11640                                  }
11641                                  must "../local";
11642                                  description
11643                                    "Remote pseudowire label";
11644                                }
11645                              }
11646                            }
11647                          }
11648                          leaf pw-class {
11649                            type xr:Cisco-ios-xr-string {
11650                              length "1..32" {
11651                                description
11652                                  "Pseudowire-class name";
11653                              }
11654                            }
11655                            description
11656                              "PW class template name to use for the backup PW";
11657                          }
11658                        }
11659                      }
11660                    }
11661                    container mpls {
11662                      description
11663                        "MPLS L2VPN PW command";
11664                      container static {
11665                        description
11666                          "MPLS L2VPN static settings";
11667                        container label {
11668                          description
11669                            "MPLS L2VPN static labels";
11670                          leaf local {
11671                            type uint32 {
11672                              range "16..1048575" {
11673                                description
11674                                  "Local pseudowire label";
11675                              }
11676                            }
11677                            must "../remote";
11678                            description
11679                              "Local pseudowire label";
11680                          }
11681                          leaf remote {
11682                            type uint32 {
11683                              range "16..1048575" {
11684                                description
11685                                  "Remote pseudowire label";
11686                              }
11687                            }
11688                            must "../local";
11689                            description
11690                              "Remote pseudowire label";
11691                          }
11692                        }
11693                      }
11694                    }
11695                    leaf pw-class {
11696                      type xr:Cisco-ios-xr-string {
11697                        length "1..32" {
11698                          description
11699                            "Pseudowire-class name";
11700                        }
11701                      }
11702                      description
11703                        "PW class template name to use for this XC";
11704                    }
11705                    container tag-impose {
11706                      description
11707                        "tag impose mode";
11708                      leaf vlan {
11709                        type uint32 {
11710                          range "1..4094" {
11711                            description
11712                              "vlan tagged mode";
11713                          }
11714                        }
11715                        description
11716                          "vlan tagged mode";
11717                      }
11718                    }
11719                    leaf bandwidth {
11720                      type uint32 {
11721                        range "0..4294967295" {
11722                          description
11723                            "PW Bandwidth";
11724                        }
11725                      }
11726                      description
11727                        "bandwidth";
11728                    }
11729                    container l2tp {
11730                      description
11731                        "L2TP PW";
11732                      container static {
11733                        presence "Indicates a static node is configured.";
11734                        description
11735                          "L2TP PW static";
11736                        container local {
11737                          description
11738                            "L2TP PW static local";
11739                          leaf session {
11740                            type uint32 {
11741                              range "1..1023" {
11742                                description
11743                                  "L2TP PW static local session ID";
11744                              }
11745                            }
11746                            description
11747                              "L2TP PW static local session ID";
11748                          }
11749                          container cookie {
11750                            description
11751                              "L2TP PW static local cookie settings";
11752                            container size {
11753                              description
11754                                "L2TP PW static local cookie size settings";
11755                              container zero {
11756                                presence "Indicates a zero node is configured.";
11757                                description
11758                                  "The cookie size is zero bytes";
11759                              }
11760                              container four {
11761                                presence "Indicates a four node is configured.";
11762                                description
11763                                  "The cookie size is four bytes";
11764                                leaf value {
11765                                  type uint32 {
11766                                    range "0..4294967295" {
11767                                      description
11768                                        "Lower 4 bytes value";
11769                                    }
11770                                  }
11771                                  mandatory true;
11772                                  description
11773                                    "The value of the cookie";
11774                                }
11775                              }
11776                              container eight {
11777                                presence "Indicates a eight node is configured.";
11778                                description
11779                                  "The cookie size is eight bytes";
11780                                leaf value {
11781                                  type uint32 {
11782                                    range "0..4294967295" {
11783                                      description
11784                                        "Lower 4 bytes value";
11785                                    }
11786                                  }
11787                                  must "../higher-4-bytes-value";
11788                                  mandatory true;
11789                                  description
11790                                    "The value of the cookie";
11791                                }
11792                                leaf higher-4-bytes-value {
11793                                  type uint32 {
11794                                    range "0..4294967295" {
11795                                      description
11796                                        "Higher 4 bytes value";
11797                                    }
11798                                  }
11799                                  must "../value";
11800                                  mandatory true;
11801                                  description
11802                                    "Higher 4 bytes value";
11803                                }
11804                              }
11805                            }
11806                          }
11807                        }
11808                        container remote {
11809                          description
11810                            "L2TP PW static remote";
11811                          leaf session {
11812                            type uint32 {
11813                              range "1..1023" {
11814                                description
11815                                  "L2TP PW static remote session ID";
11816                              }
11817                            }
11818                            description
11819                              "L2TP PW static remote session ID";
11820                          }
11821                          container cookie {
11822                            description
11823                              "L2TP PW static remote cookie settings";
11824                            container size {
11825                              description
11826                                "L2TP PW static remote cookie size settings";
11827                              container zero {
11828                                presence "Indicates a zero node is configured.";
11829                                description
11830                                  "The cookie size is zero bytes";
11831                              }
11832                              container four {
11833                                presence "Indicates a four node is configured.";
11834                                description
11835                                  "The cookie size is four bytes";
11836                                leaf value {
11837                                  type uint32 {
11838                                    range "0..4294967295" {
11839                                      description
11840                                        "Lower 4 bytes value";
11841                                    }
11842                                  }
11843                                  mandatory true;
11844                                  description
11845                                    "The value of the cookie";
11846                                }
11847                              }
11848                              container eight {
11849                                presence "Indicates a eight node is configured.";
11850                                description
11851                                  "The cookie size is eight bytes";
11852                                leaf value {
11853                                  type uint32 {
11854                                    range "0..4294967295" {
11855                                      description
11856                                        "Lower 4 bytes value";
11857                                    }
11858                                  }
11859                                  must "../higher-4-bytes-value";
11860                                  mandatory true;
11861                                  description
11862                                    "The value of the cookie";
11863                                }
11864                                leaf higher-4-bytes-value {
11865                                  type uint32 {
11866                                    range "0..4294967295" {
11867                                      description
11868                                        "Higher 4 bytes value";
11869                                    }
11870                                  }
11871                                  must "../value";
11872                                  mandatory true;
11873                                  description
11874                                    "Higher 4 bytes value";
11875                                }
11876                              }
11877                            }
11878                          }
11879                        }
11880                      }
11881                    }
11882                  }
11883                }
11884                container ipv6s {
11885                  description
11886                    "IPv4";
11887                  list ipv6 {
11888                    key "address pw-id";
11889                    description
11890                      "IPv6";
11891                    leaf address {
11892                      type inet:ipv6-address-no-zone;
11893                      description
11894                        "IPv6";
11895                    }11250                    }
11896                    leaf pw-id {11251                    leaf pw-id {
11897                      type uint32 {11252                      type uint32 {
11898                        range "1..4294967295" {11253                        range "1..4294967295" {
11899                          description11254                          description
11900                            "Pseudowire ID";11255                            "Pseudowire ID";
11901                        }11256                        }
11902                      }11257                      }
11903                      description11258                      description
11904                        "Specify the pseudowire id";11259                        "Specify the pseudowire id";
11905                    }11260                    }
11906                    container backup {11261                    container backup {
11907                      description11262                      description
11908                        "Backup pseudowire for the cross connect";11263                        "Backup pseudowire for the cross connect";
11909                      container neighbors {11264                      container neighbors {
11910                        description11265                        description
11911                          "Specify the peer to cross connect";11266                          "Specify the peer to cross connect";
11912                        list neighbor {11267                        list neighbor {
11913                          key "address pw-id";11268                          key "address pw-id";
11914                          description11269                          description
11915                            "Specify the peer to cross connect";11270                            "Specify the peer to cross connect";
11916                          leaf address {11271                          leaf address {
11917                            type inet:ipv4-address-no-zone;11272                            type inet:ipv4-address-no-zone;
11918                            description11273                            description
11919                              "Specify the peer to cross connect";11274                              "Specify the peer to cross connect";
11920                          }11275                          }
11921                          leaf pw-id {11276                          leaf pw-id {
11922                            type uint32 {11277                            type uint32 {
11923                              range "1..4294967295" {11278                              range "1..4294967295" {
11924                                description11279                                description
11925                                  "Pseudowire ID";11280                                  "Pseudowire ID";
11926                              }11281                              }
11927                            }11282                            }
11928                            description11283                            description
11929                              "Specify the pseudowire id";11284                              "Specify the pseudowire id";
11930                          }11285                          }
11931                          container mpls {11286                          container mpls {
11932                            description11287                            description
11933                              "MPLS L2VPN PW command";11288                              "MPLS L2VPN PW command";
11934                            container static {11289                            container static {
11935                              description11290                              description
11936                                "MPLS L2VPN static settings";11291                                "MPLS L2VPN static settings";
11937                              container label {11292                              container label {
11938                                description11293                                description
11939                                  "MPLS L2VPN static labels";11294                                  "MPLS L2VPN static labels";
11940                                leaf local {11295                                leaf local {
11941                                  type uint32 {11296                                  type uint32 {
11942                                    range "16..1048575" {11297                                    range "16..1048575" {
11943                                      description11298                                      description
11944                                        "Local pseudowire label";11299                                        "Local pseudowire label";
11945                                    }11300                                    }
11946                                  }11301                                  }
11947                                  must "../remote";11302                                  must "../remote";
11948                                  description11303                                  description
11949                                    "Local pseudowire label";11304                                    "Local pseudowire label";
11950                                }11305                                }
11951                                leaf remote {11306                                leaf remote {
11952                                  type uint32 {11307                                  type uint32 {
11953                                    range "16..1048575" {11308                                    range "16..1048575" {
11954                                      description11309                                      description
11955                                        "Remote pseudowire label";11310                                        "Remote pseudowire label";
11956                                    }11311                                    }
11957                                  }11312                                  }
11958                                  must "../local";11313                                  must "../local";
11959                                  description11314                                  description
11960                                    "Remote pseudowire label";11315                                    "Remote pseudowire label";
11961                                }11316                                }
11962                              }11317                              }
11963                            }11318                            }
11964                          }11319                          }
11965                          leaf pw-class {11320                          leaf pw-class {
11966                            type xr:Cisco-ios-xr-string {11321                            type xr:Cisco-ios-xr-string {
11967                              length "1..32" {11322                              length "1..32" {
11968                                description11323                                description
11969                                  "Pseudowire-class name";11324                                  "Pseudowire-class name";
11970                              }11325                              }
11971                            }11326                            }
11972                            description11327                            description
11973                              "PW class template name to use for the backup PW";11328                              "PW class template name to use for the backup PW";
11974                          }11329                          }
11975                        }11330                        }
11976                      }11331                      }
11977                    }11332                    }
11978                    container mpls {11333                    container mpls {
11979                      description11334                      description
11980                        "MPLS L2VPN PW command";11335                        "MPLS L2VPN PW command";
11981                      container static {11336                      container static {
11982                        description11337                        description
11983                          "MPLS L2VPN static settings";11338                          "MPLS L2VPN static settings";
11984                        container label {11339                        container label {
11985                          description11340                          description
11986                            "MPLS L2VPN static labels";11341                            "MPLS L2VPN static labels";
11987                          leaf local {11342                          leaf local {
11988                            type uint32 {11343                            type uint32 {
11989                              range "16..1048575" {11344                              range "16..1048575" {
11990                                description11345                                description
11991                                  "Local pseudowire label";11346                                  "Local pseudowire label";
11992                              }11347                              }
11993                            }11348                            }
11994                            must "../remote";11349                            must "../remote";
11995                            description11350                            description
11996                              "Local pseudowire label";11351                              "Local pseudowire label";
11997                          }11352                          }
11998                          leaf remote {11353                          leaf remote {
11999                            type uint32 {11354                            type uint32 {
12000                              range "16..1048575" {11355                              range "16..1048575" {
12001                                description11356                                description
12002                                  "Remote pseudowire label";11357                                  "Remote pseudowire label";
12003                              }11358                              }
12004                            }11359                            }
12005                            must "../local";11360                            must "../local";
12006                            description11361                            description
12007                              "Remote pseudowire label";11362                              "Remote pseudowire label";
12008                          }11363                          }
12009                        }11364                        }
12010                      }11365                      }
12011                    }11366                    }
12012                    leaf pw-class {11367                    leaf pw-class {
12013                      type xr:Cisco-ios-xr-string {11368                      type xr:Cisco-ios-xr-string {
12014                        length "1..32" {11369                        length "1..32" {
12015                          description11370                          description
12016                            "Pseudowire-class name";11371                            "Pseudowire-class name";
12017                        }11372                        }
12018                      }11373                      }
12019                      description11374                      description
12020                        "PW class template name to use for this XC";11375                        "PW class template name to use for this XC";
12021                    }11376                    }
12022                    container tag-impose {11377                    container tag-impose {
12023                      description11378                      description
12024                        "tag impose mode";11379                        "tag impose mode";
12025                      leaf vlan {11380                      leaf vlan {
12026                        type uint32 {11381                        type uint32 {
12027                          range "1..4094" {11382                          range "1..4094" {
12028                            description11383                            description
12029                              "vlan tagged mode";11384                              "vlan tagged mode";
12030                          }11385                          }
12031                        }11386                        }
12032                        description11387                        description
12033                          "vlan tagged mode";11388                          "vlan tagged mode";
12034                      }11389                      }
12035                    }11390                    }
12036                    leaf bandwidth {11391                    leaf bandwidth {
12037                      type uint32 {11392                      type uint32 {
12038                        range "0..4294967295" {11393                        range "0..4294967295" {
12039                          description11394                          description
12040                            "PW Bandwidth";11395                            "PW Bandwidth";
12041                        }11396                        }
12042                      }11397                      }
12043                      description11398                      description
12044                        "bandwidth";11399                        "bandwidth";
12045                    }11400                    }
12046                    container source {11401                    container source {
12047                      description11402                      description
12048                        "Source address of PW";11403                        "Source address of PW";
12049                      leaf ipv6-address {11404                      leaf ipv6-address {
12050                        type inet:ipv6-address-no-zone;11405                        type inet:ipv6-address-no-zone;
12051                        description11406                        description
12052                          "Source IPv6 address of PW";11407                          "Source IPv6 address of PW";
12053                      }11408                      }
12054                    }11409                    }
12055                    container l2tp {11410                    container l2tp {
12056                      description11411                      description
12057                        "L2TP PW";11412                        "L2TP PW";
12058                      container static {11413                      container static {
12059                        presence "Indicates a static node is configured.";11414                        presence "Indicates a static node is configured.";
12060                        description11415                        description
12061                          "L2TP PW static";11416                          "L2TP PW static";
12062                        container local {11417                        container local {
12063                          description11418                          description
12064                            "L2TP PW static local";11419                            "L2TP PW static local";
12065                          leaf session {11420                          leaf session {
12066                            type uint32 {11421                            type uint32 {
12067                              range "1..1023" {11422                              range "1..1023" {
12068                                description11423                                description
12069                                  "L2TP PW static local session ID";11424                                  "L2TP PW static local session ID";
12070                              }11425                              }
12071                            }11426                            }
12072                            description11427                            description
12073                              "L2TP PW static local session ID";11428                              "L2TP PW static local session ID";
12074                          }11429                          }
12075                          container cookie {11430                          container cookie {
12076                            description11431                            description
12077                              "L2TP PW static local cookie settings";11432                              "L2TP PW static local cookie settings";
12078                            container size {11433                            container size {
12079                              description11434                              description
12080                                "L2TP PW static local cookie size settings";11435                                "L2TP PW static local cookie size settings";
12081                              container zero {11436                              container zero {
12082                                presence "Indicates a zero node is configured.";11437                                presence "Indicates a zero node is configured.";
12083                                description11438                                description
12084                                  "The cookie size is zero bytes";11439                                  "The cookie size is zero bytes";
12085                              }11440                              }
12086                              container four {11441                              container four {
12087                                presence "Indicates a four node is configured.";11442                                presence "Indicates a four node is configured.";
12088                                description11443                                description
12089                                  "The cookie size is four bytes";11444                                  "The cookie size is four bytes";
12090                                leaf value {11445                                leaf value {
12091                                  type uint32 {11446                                  type uint32 {
12092                                    range "0..4294967295" {11447                                    range "0..4294967295" {
12093                                      description11448                                      description
12094                                        "Lower 4 bytes value";11449                                        "Lower 4 bytes value";
12095                                    }11450                                    }
12096                                  }11451                                  }
12097                                  mandatory true;11452                                  mandatory true;
12098                                  description11453                                  description
12099                                    "The value of the cookie";11454                                    "The value of the cookie";
12100                                }11455                                }
12101                              }11456                              }
12102                              container eight {11457                              container eight {
12103                                presence "Indicates a eight node is configured.";11458                                presence "Indicates a eight node is configured.";
12104                                description11459                                description
12105                                  "The cookie size is eight bytes";11460                                  "The cookie size is eight bytes";
12106                                leaf value {11461                                leaf value {
12107                                  type uint32 {11462                                  type uint32 {
12108                                    range "0..4294967295" {11463                                    range "0..4294967295" {
12109                                      description11464                                      description
12110                                        "Lower 4 bytes value";11465                                        "Lower 4 bytes value";
12111                                    }11466                                    }
12112                                  }11467                                  }
12113                                  must "../higher-4-bytes-value";11468                                  must "../higher-4-bytes-value";
12114                                  mandatory true;11469                                  mandatory true;
12115                                  description11470                                  description
12116                                    "The value of the cookie";11471                                    "The value of the cookie";
12117                                }11472                                }
12118                                leaf higher-4-bytes-value {11473                                leaf higher-4-bytes-value {
12119                                  type uint32 {11474                                  type uint32 {
12120                                    range "0..4294967295" {11475                                    range "0..4294967295" {
12121                                      description11476                                      description
12122                                        "Higher 4 bytes value";11477                                        "Higher 4 bytes value";
12123                                    }11478                                    }
12124                                  }11479                                  }
12125                                  must "../value";11480                                  must "../value";
12126                                  mandatory true;11481                                  mandatory true;
12127                                  description11482                                  description
12128                                    "Higher 4 bytes value";11483                                    "Higher 4 bytes value";
12129                                }11484                                }
12130                              }11485                              }
12131                            }11486                            }
12132                            container secondary {11487                            container secondary {
12133                              description11488                              description
12134                                "L2TP PW static secondary local cookie settings";11489                                "L2TP PW static secondary local cookie settings";
12135                              container size {11490                              container size {
12136                                description11491                                description
12137                                  "L2TP PW static local cookie size settings";11492                                  "L2TP PW static local cookie size settings";
12138                                container zero {11493                                container zero {
12139                                  presence "Indicates a zero node is configured.";11494                                  presence "Indicates a zero node is configured.";
12140                                  description11495                                  description
12141                                    "The cookie size is zero bytes";11496                                    "The cookie size is zero bytes";
12142                                }11497                                }
12143                                container four {11498                                container four {
12144                                  presence "Indicates a four node is configured.";11499                                  presence "Indicates a four node is configured.";
12145                                  description11500                                  description
12146                                    "The cookie size is four bytes";11501                                    "The cookie size is four bytes";
12147                                  leaf value {11502                                  leaf value {
12148                                    type uint32 {11503                                    type uint32 {
12149                                      range "0..4294967295" {11504                                      range "0..4294967295" {
12150                                        description11505                                        description
12151                                          "Lower 4 bytes value";11506                                          "Lower 4 bytes value";
12152                                      }11507                                      }
12153                                    }11508                                    }
12154                                    mandatory true;11509                                    mandatory true;
12155                                    description11510                                    description
12156                                      "The value of the cookie";11511                                      "The value of the cookie";
12157                                  }11512                                  }
12158                                }11513                                }
12159                                container eight {11514                                container eight {
12160                                  presence "Indicates a eight node is configured.";11515                                  presence "Indicates a eight node is configured.";
12161                                  description11516                                  description
12162                                    "The cookie size is eight bytes";11517                                    "The cookie size is eight bytes";
12163                                  leaf value {11518                                  leaf value {
12164                                    type uint32 {11519                                    type uint32 {
12165                                      range "0..4294967295" {11520                                      range "0..4294967295" {
12166                                        description11521                                        description
12167                                          "Lower 4 bytes value";11522                                          "Lower 4 bytes value";
12168                                      }11523                                      }
12169                                    }11524                                    }
12170                                    must "../higher-4-bytes-value";11525                                    must "../higher-4-bytes-value";
12171                                    mandatory true;11526                                    mandatory true;
12172                                    description11527                                    description
12173                                      "The value of the cookie";11528                                      "The value of the cookie";
12174                                  }11529                                  }
12175                                  leaf higher-4-bytes-value {11530                                  leaf higher-4-bytes-value {
12176                                    type uint32 {11531                                    type uint32 {
12177                                      range "0..4294967295" {11532                                      range "0..4294967295" {
12178                                        description11533                                        description
12179                                          "Higher 4 bytes value";11534                                          "Higher 4 bytes value";
12180                                      }11535                                      }
12181                                    }11536                                    }
12182                                    must "../value";11537                                    must "../value";
12183                                    mandatory true;11538                                    mandatory true;
12184                                    description11539                                    description
12185                                      "Higher 4 bytes value";11540                                      "Higher 4 bytes value";
12186                                  }11541                                  }
12187                                }11542                                }
12188                              }11543                              }
12189                            }11544                            }
12190                          }11545                          }
12191                        }11546                        }
12192                        container remote {11547                        container remote {
12193                          description11548                          description
12194                            "L2TP PW static remote";11549                            "L2TP PW static remote";
12195                          leaf session {11550                          leaf session {
12196                            type uint32 {11551                            type uint32 {
12197                              range "1..1023" {11552                              range "1..1023" {
12198                                description11553                                description
12199                                  "L2TP PW static remote session ID";11554                                  "L2TP PW static remote session ID";
12200                              }11555                              }
12201                            }11556                            }
12202                            description11557                            description
12203                              "L2TP PW static remote session ID";11558                              "L2TP PW static remote session ID";
12204                          }11559                          }
12205                          container cookie {11560                          container cookie {
12206                            description11561                            description
12207                              "L2TP PW static remote cookie settings";11562                              "L2TP PW static remote cookie settings";
12208                            container size {11563                            container size {
12209                              description11564                              description
12210                                "L2TP PW static remote cookie size settings";11565                                "L2TP PW static remote cookie size settings";
12211                              container zero {11566                              container zero {
12212                                presence "Indicates a zero node is configured.";11567                                presence "Indicates a zero node is configured.";
12213                                description11568                                description
12214                                  "The cookie size is zero bytes";11569                                  "The cookie size is zero bytes";
12215                              }11570                              }
12216                              container four {11571                              container four {
12217                                presence "Indicates a four node is configured.";11572                                presence "Indicates a four node is configured.";
12218                                description11573                                description
12219                                  "The cookie size is four bytes";11574                                  "The cookie size is four bytes";
12220                                leaf value {11575                                leaf value {
12221                                  type uint32 {11576                                  type uint32 {
12222                                    range "0..4294967295" {11577                                    range "0..4294967295" {
12223                                      description11578                                      description
12224                                        "Lower 4 bytes value";11579                                        "Lower 4 bytes value";
12225                                    }11580                                    }
12226                                  }11581                                  }
12227                                  mandatory true;11582                                  mandatory true;
12228                                  description11583                                  description
12229                                    "The value of the cookie";11584                                    "The value of the cookie";
12230                                }11585                                }
12231                              }11586                              }
12232                              container eight {11587                              container eight {
12233                                presence "Indicates a eight node is configured.";11588                                presence "Indicates a eight node is configured.";
12234                                description11589                                description
12235                                  "The cookie size is eight bytes";11590                                  "The cookie size is eight bytes";
12236                                leaf value {11591                                leaf value {
12237                                  type uint32 {11592                                  type uint32 {
12238                                    range "0..4294967295" {11593                                    range "0..4294967295" {
12239                                      description11594                                      description
12240                                        "Lower 4 bytes value";11595                                        "Lower 4 bytes value";
12241                                    }11596                                    }
12242                                  }11597                                  }
12243                                  must "../higher-4-bytes-value";11598                                  must "../higher-4-bytes-value";
12244                                  mandatory true;11599                                  mandatory true;
12245                                  description11600                                  description
12246                                    "The value of the cookie";11601                                    "The value of the cookie";
12247                                }11602                                }
12248                                leaf higher-4-bytes-value {11603                                leaf higher-4-bytes-value {
12249                                  type uint32 {11604                                  type uint32 {
12250                                    range "0..4294967295" {11605                                    range "0..4294967295" {
12251                                      description11606                                      description
12252                                        "Higher 4 bytes value";11607                                        "Higher 4 bytes value";
12253                                    }11608                                    }
12254                                  }11609                                  }
12255                                  must "../value";11610                                  must "../value";
12256                                  mandatory true;11611                                  mandatory true;
12257                                  description11612                                  description
12258                                    "Higher 4 bytes value";11613                                    "Higher 4 bytes value";
12259                                }11614                                }
12260                              }11615                              }
12261                            }11616                            }
12262                          }11617                          }
12263                        }11618                        }
12264                      }11619                      }
12265                    }11620                    }
12266                  }11621                  }
12267                }11622                }
nn11623                container ipv6s {
11624                  description
11625                    "IPv4";
11626                  list ipv6 {
11627                    key "address pw-id";
11628                    description
11629                      "IPv6";
11630                    leaf address {
11631                      type inet:ipv6-address-no-zone;
11632                      description
11633                        "IPv6";
11634                    }
11635                    leaf pw-id {
11636                      type uint32 {
11637                        range "1..4294967295" {
11638                          description
11639                            "Pseudowire ID";
11640                        }
11641                      }
11642                      description
11643                        "Specify the pseudowire id";
11644                    }
11645                    container backup {
11646                      description
11647                        "Backup pseudowire for the cross connect";
11648                      container neighbors {
11649                        description
11650                          "Specify the peer to cross connect";
11651                        list neighbor {
11652                          key "address pw-id";
11653                          description
11654                            "Specify the peer to cross connect";
11655                          leaf address {
11656                            type inet:ipv4-address-no-zone;
11657                            description
11658                              "Specify the peer to cross connect";
11659                          }
11660                          leaf pw-id {
11661                            type uint32 {
11662                              range "1..4294967295" {
11663                                description
11664                                  "Pseudowire ID";
11665                              }
11666                            }
11667                            description
11668                              "Specify the pseudowire id";
11669                          }
11670                          container mpls {
11671                            description
11672                              "MPLS L2VPN PW command";
11673                            container static {
11674                              description
11675                                "MPLS L2VPN static settings";
11676                              container label {
11677                                description
11678                                  "MPLS L2VPN static labels";
11679                                leaf local {
11680                                  type uint32 {
11681                                    range "16..1048575" {
11682                                      description
11683                                        "Local pseudowire label";
11684                                    }
11685                                  }
11686                                  must "../remote";
11687                                  description
11688                                    "Local pseudowire label";
11689                                }
11690                                leaf remote {
11691                                  type uint32 {
11692                                    range "16..1048575" {
11693                                      description
11694                                        "Remote pseudowire label";
11695                                    }
11696                                  }
11697                                  must "../local";
11698                                  description
11699                                    "Remote pseudowire label";
11700                                }
11701                              }
11702                            }
11703                          }
11704                          leaf pw-class {
11705                            type xr:Cisco-ios-xr-string {
11706                              length "1..32" {
11707                                description
11708                                  "Pseudowire-class name";
11709                              }
11710                            }
11711                            description
11712                              "PW class template name to use for the backup PW";
11713                          }
11714                        }
11715                      }
11716                    }
11717                    container mpls {
11718                      description
11719                        "MPLS L2VPN PW command";
11720                      container static {
11721                        description
11722                          "MPLS L2VPN static settings";
11723                        container label {
11724                          description
11725                            "MPLS L2VPN static labels";
11726                          leaf local {
11727                            type uint32 {
11728                              range "16..1048575" {
11729                                description
11730                                  "Local pseudowire label";
11731                              }
11732                            }
11733                            must "../remote";
11734                            description
11735                              "Local pseudowire label";
11736                          }
11737                          leaf remote {
11738                            type uint32 {
11739                              range "16..1048575" {
11740                                description
11741                                  "Remote pseudowire label";
11742                              }
11743                            }
11744                            must "../local";
11745                            description
11746                              "Remote pseudowire label";
11747                          }
11748                        }
11749                      }
11750                    }
11751                    leaf pw-class {
11752                      type xr:Cisco-ios-xr-string {
11753                        length "1..32" {
11754                          description
11755                            "Pseudowire-class name";
11756                        }
11757                      }
11758                      description
11759                        "PW class template name to use for this XC";
11760                    }
11761                    container tag-impose {
11762                      description
11763                        "tag impose mode";
11764                      leaf vlan {
11765                        type uint32 {
11766                          range "1..4094" {
11767                            description
11768                              "vlan tagged mode";
11769                          }
11770                        }
11771                        description
11772                          "vlan tagged mode";
11773                      }
11774                    }
11775                    leaf bandwidth {
11776                      type uint32 {
11777                        range "0..4294967295" {
11778                          description
11779                            "PW Bandwidth";
11780                        }
11781                      }
11782                      description
11783                        "bandwidth";
11784                    }
11785                    container source {
11786                      description
11787                        "Source address of PW";
11788                      leaf ipv6-address {
11789                        type inet:ipv6-address-no-zone;
11790                        description
11791                          "Source IPv6 address of PW";
11792                      }
11793                    }
11794                    container l2tp {
11795                      description
11796                        "L2TP PW";
11797                      container static {
11798                        presence "Indicates a static node is configured.";
11799                        description
11800                          "L2TP PW static";
11801                        container local {
11802                          description
11803                            "L2TP PW static local";
11804                          leaf session {
11805                            type uint32 {
11806                              range "1..1023" {
11807                                description
11808                                  "L2TP PW static local session ID";
11809                              }
11810                            }
11811                            description
11812                              "L2TP PW static local session ID";
11813                          }
11814                          container cookie {
11815                            description
11816                              "L2TP PW static local cookie settings";
11817                            container size {
11818                              description
11819                                "L2TP PW static local cookie size settings";
11820                              container zero {
11821                                presence "Indicates a zero node is configured.";
11822                                description
11823                                  "The cookie size is zero bytes";
11824                              }
11825                              container four {
11826                                presence "Indicates a four node is configured.";
11827                                description
11828                                  "The cookie size is four bytes";
11829                                leaf value {
11830                                  type uint32 {
11831                                    range "0..4294967295" {
11832                                      description
11833                                        "Lower 4 bytes value";
11834                                    }
11835                                  }
11836                                  mandatory true;
11837                                  description
11838                                    "The value of the cookie";
11839                                }
11840                              }
11841                              container eight {
11842                                presence "Indicates a eight node is configured.";
11843                                description
11844                                  "The cookie size is eight bytes";
11845                                leaf value {
11846                                  type uint32 {
11847                                    range "0..4294967295" {
11848                                      description
11849                                        "Lower 4 bytes value";
11850                                    }
11851                                  }
11852                                  must "../higher-4-bytes-value";
11853                                  mandatory true;
11854                                  description
11855                                    "The value of the cookie";
11856                                }
11857                                leaf higher-4-bytes-value {
11858                                  type uint32 {
11859                                    range "0..4294967295" {
11860                                      description
11861                                        "Higher 4 bytes value";
11862                                    }
11863                                  }
11864                                  must "../value";
11865                                  mandatory true;
11866                                  description
11867                                    "Higher 4 bytes value";
11868                                }
11869                              }
11870                            }
11871                            container secondary {
11872                              description
11873                                "L2TP PW static secondary local cookie settings";
11874                              container size {
11875                                description
11876                                  "L2TP PW static local cookie size settings";
11877                                container zero {
11878                                  presence "Indicates a zero node is configured.";
11879                                  description
11880                                    "The cookie size is zero bytes";
11881                                }
11882                                container four {
11883                                  presence "Indicates a four node is configured.";
11884                                  description
11885                                    "The cookie size is four bytes";
11886                                  leaf value {
11887                                    type uint32 {
11888                                      range "0..4294967295" {
11889                                        description
11890                                          "Lower 4 bytes value";
11891                                      }
11892                                    }
11893                                    mandatory true;
11894                                    description
11895                                      "The value of the cookie";
11896                                  }
11897                                }
11898                                container eight {
11899                                  presence "Indicates a eight node is configured.";
11900                                  description
11901                                    "The cookie size is eight bytes";
11902                                  leaf value {
11903                                    type uint32 {
11904                                      range "0..4294967295" {
11905                                        description
11906                                          "Lower 4 bytes value";
11907                                      }
11908                                    }
11909                                    must "../higher-4-bytes-value";
11910                                    mandatory true;
11911                                    description
11912                                      "The value of the cookie";
11913                                  }
11914                                  leaf higher-4-bytes-value {
11915                                    type uint32 {
11916                                      range "0..4294967295" {
11917                                        description
11918                                          "Higher 4 bytes value";
11919                                      }
11920                                    }
11921                                    must "../value";
11922                                    mandatory true;
11923                                    description
11924                                      "Higher 4 bytes value";
11925                                  }
11926                                }
11927                              }
11928                            }
11929                          }
11930                        }
11931                        container remote {
11932                          description
11933                            "L2TP PW static remote";
11934                          leaf session {
11935                            type uint32 {
11936                              range "1..1023" {
11937                                description
11938                                  "L2TP PW static remote session ID";
11939                              }
11940                            }
11941                            description
11942                              "L2TP PW static remote session ID";
11943                          }
11944                          container cookie {
11945                            description
11946                              "L2TP PW static remote cookie settings";
11947                            container size {
11948                              description
11949                                "L2TP PW static remote cookie size settings";
11950                              container zero {
11951                                presence "Indicates a zero node is configured.";
11952                                description
11953                                  "The cookie size is zero bytes";
11954                              }
11955                              container four {
11956                                presence "Indicates a four node is configured.";
11957                                description
11958                                  "The cookie size is four bytes";
11959                                leaf value {
11960                                  type uint32 {
11961                                    range "0..4294967295" {
11962                                      description
11963                                        "Lower 4 bytes value";
11964                                    }
11965                                  }
11966                                  mandatory true;
11967                                  description
11968                                    "The value of the cookie";
11969                                }
11970                              }
11971                              container eight {
11972                                presence "Indicates a eight node is configured.";
11973                                description
11974                                  "The cookie size is eight bytes";
11975                                leaf value {
11976                                  type uint32 {
11977                                    range "0..4294967295" {
11978                                      description
11979                                        "Lower 4 bytes value";
11980                                    }
11981                                  }
11982                                  must "../higher-4-bytes-value";
11983                                  mandatory true;
11984                                  description
11985                                    "The value of the cookie";
11986                                }
11987                                leaf higher-4-bytes-value {
11988                                  type uint32 {
11989                                    range "0..4294967295" {
11990                                      description
11991                                        "Higher 4 bytes value";
11992                                    }
11993                                  }
11994                                  must "../value";
11995                                  mandatory true;
11996                                  description
11997                                    "Higher 4 bytes value";
11998                                }
11999                              }
12000                            }
12001                          }
12002                        }
12003                      }
12004                    }
12005                  }
12006                }
12268                container routeds {12007                container routeds {
12269                  description12008                  description
12270                    "Specify a routed PW";12009                    "Specify a routed PW";
12271                  list routed {12010                  list routed {
12272                    key "global-id target-l2-prefix target-ac-id source";12011                    key "global-id target-l2-prefix target-ac-id source";
12273                    description12012                    description
12274                      "Specify a routed PW";12013                      "Specify a routed PW";
12275                    leaf global-id {12014                    leaf global-id {
12276                      type uint32 {12015                      type uint32 {
12277                        range "1..4294967295" {12016                        range "1..4294967295" {
12278                          description12017                          description
12279                            "Four Byte Global Id";12018                            "Four Byte Global Id";
12280                        }12019                        }
12281                      }12020                      }
12282                      description12021                      description
12283                        "Specify a routed PW";12022                        "Specify a routed PW";
12284                    }12023                    }
12285                    leaf target-l2-prefix {12024                    leaf target-l2-prefix {
12286                      type inet:ipv4-address-no-zone;12025                      type inet:ipv4-address-no-zone;
12287                      description12026                      description
12288                        "Target L2 prefix";12027                        "Target L2 prefix";
12289                    }12028                    }
12290                    leaf target-ac-id {12029                    leaf target-ac-id {
12291                      type uint32 {12030                      type uint32 {
12292                        range "1..4294967295" {12031                        range "1..4294967295" {
12293                          description12032                          description
12294                            "Target AC id";12033                            "Target AC id";
12295                        }12034                        }
12296                      }12035                      }
12297                      description12036                      description
12298                        "Target AC id";12037                        "Target AC id";
12299                    }12038                    }
12300                    leaf source {12039                    leaf source {
12301                      type uint32 {12040                      type uint32 {
12302                        range "1..4294967295" {12041                        range "1..4294967295" {
12303                          description12042                          description
12304                            "Local AC id (hex or decimal format)";12043                            "Local AC id (hex or decimal format)";
12305                        }12044                        }
12306                      }12045                      }
12307                      description12046                      description
12308                        "Source addresss of the routed PW";12047                        "Source addresss of the routed PW";
12309                    }12048                    }
12310                    leaf pw-class {12049                    leaf pw-class {
12311                      type xr:Cisco-ios-xr-string {12050                      type xr:Cisco-ios-xr-string {
12312                        length "1..32" {12051                        length "1..32" {
12313                          description12052                          description
12314                            "Pseudowire-class name";12053                            "Pseudowire-class name";
12315                        }12054                        }
12316                      }12055                      }
12317                      description12056                      description
12318                        "PW class template name to use for this XC";12057                        "PW class template name to use for this XC";
12319                    }12058                    }
12320                    container tag-impose {12059                    container tag-impose {
12321                      description12060                      description
12322                        "tag impose mode";12061                        "tag impose mode";
12323                      leaf vlan {12062                      leaf vlan {
12324                        type uint32 {12063                        type uint32 {
12325                          range "1..4094" {12064                          range "1..4094" {
12326                            description12065                            description
12327                              "vlan tagged mode";12066                              "vlan tagged mode";
12328                          }12067                          }
12329                        }12068                        }
12330                        description12069                        description
12331                          "vlan tagged mode";12070                          "vlan tagged mode";
12332                      }12071                      }
12333                    }12072                    }
12334                  }12073                  }
12335                }12074                }
12336                container evpn {12075                container evpn {
12337                  description12076                  description
12338                    "Specify the Ethernet VPN";12077                    "Specify the Ethernet VPN";
12339                  container evi {12078                  container evi {
12340                    description12079                    description
12341                      "Ethernet VPN Identifier";12080                      "Ethernet VPN Identifier";
12342                    container targets {12081                    container targets {
12343                      description12082                      description
12344                        "Specify remote attachment circuit identifier";12083                        "Specify remote attachment circuit identifier";
12345                      list target {12084                      list target {
12346                        key "vpn-id remote-ac-id source";12085                        key "vpn-id remote-ac-id source";
12347                        description12086                        description
12348                          "Specify remote attachment circuit identifier";12087                          "Specify remote attachment circuit identifier";
12349                        leaf vpn-id {12088                        leaf vpn-id {
12350                          type uint32 {12089                          type uint32 {
12351                            range "1..65534" {12090                            range "1..65534" {
12352                              description12091                              description
12353                                "Ethernet VPN ID to set";12092                                "Ethernet VPN ID to set";
12354                            }12093                            }
12355                          }12094                          }
12356                          description12095                          description
12357                            "Ethernet VPN Identifier";12096                            "Ethernet VPN Identifier";
12358                        }12097                        }
12359                        leaf remote-ac-id {12098                        leaf remote-ac-id {
12360                          type uint32 {12099                          type uint32 {
12361                            range "1..4294967294" {12100                            range "1..4294967294" {
12362                              description12101                              description
12363                                "Remote ac-id";12102                                "Remote ac-id";
12364                            }12103                            }
12365                          }12104                          }
12366                          description12105                          description
12367                            "Specify remote attachment circuit identifier";12106                            "Specify remote attachment circuit identifier";
12368                        }12107                        }
12369                        leaf source {12108                        leaf source {
12370                          type uint32 {12109                          type uint32 {
12371                            range "1..4294967294" {12110                            range "1..4294967294" {
12372                              description12111                              description
12373                                "Source ac-id";12112                                "Source ac-id";
12374                            }12113                            }
12375                          }12114                          }
12376                          description12115                          description
12377                            "Specify source attachment circuit identifier";12116                            "Specify source attachment circuit identifier";
12378                        }12117                        }
12379                        leaf pw-class {12118                        leaf pw-class {
12380                          type xr:Cisco-ios-xr-string {12119                          type xr:Cisco-ios-xr-string {
12381                            length "1..32" {12120                            length "1..32" {
12382                              description12121                              description
12383                                "Pseudowire-class name";12122                                "Pseudowire-class name";
12384                            }12123                            }
12385                          }12124                          }
12386                          description12125                          description
12387                            "PW class template name to use";12126                            "PW class template name to use";
12388                        }12127                        }
12389                      }12128                      }
12390                    }12129                    }
12391                    container services {12130                    container services {
12392                      description12131                      description
12393                        "Specify service ID (used as local and remote ac-id)";12132                        "Specify service ID (used as local and remote ac-id)";
12394                      list service {12133                      list service {
12395                        key "vpn-id service-id";12134                        key "vpn-id service-id";
12396                        description12135                        description
12397                          "Specify service ID (used as local and remote ac-id)";12136                          "Specify service ID (used as local and remote ac-id)";
12398                        leaf vpn-id {12137                        leaf vpn-id {
12399                          type uint32 {12138                          type uint32 {
12400                            range "1..65534" {12139                            range "1..65534" {
12401                              description12140                              description
12402                                "Ethernet VPN ID to set";12141                                "Ethernet VPN ID to set";
12403                            }12142                            }
12404                          }12143                          }
12405                          description12144                          description
12406                            "Ethernet VPN Identifier";12145                            "Ethernet VPN Identifier";
12407                        }12146                        }
12408                        leaf service-id {12147                        leaf service-id {
12409                          type uint32 {12148                          type uint32 {
12410                            range "1..4294967294" {12149                            range "1..4294967294" {
12411                              description12150                              description
12412                                "Service ID";12151                                "Service ID";
12413                            }12152                            }
12414                          }12153                          }
12415                          description12154                          description
12416                            "Specify service ID (used as local and remote ac-id)";12155                            "Specify service ID (used as local and remote ac-id)";
12417                        }12156                        }
12418                        leaf pw-class {12157                        leaf pw-class {
12419                          type xr:Cisco-ios-xr-string {12158                          type xr:Cisco-ios-xr-string {
12420                            length "1..32" {12159                            length "1..32" {
12421                              description12160                              description
12422                                "Pseudowire-class name";12161                                "Pseudowire-class name";
12423                            }12162                            }
12424                          }12163                          }
12425                          description12164                          description
12426                            "PW class template name to use";12165                            "PW class template name to use";
12427                        }12166                        }
12428                      }12167                      }
12429                    }12168                    }
12430                    container segment-routing-targets {12169                    container segment-routing-targets {
12431                      description12170                      description
12432                        "Specify remote attachment circuit identifier";12171                        "Specify remote attachment circuit identifier";
12433                      list target {12172                      list target {
12434                        must "segment-routing/srv6";12173                        must "segment-routing/srv6";
12435                        key "vpn-id remote-ac-id source";12174                        key "vpn-id remote-ac-id source";
12436                        description12175                        description
12437                          "Specify remote attachment circuit identifier";12176                          "Specify remote attachment circuit identifier";
12438                        leaf vpn-id {12177                        leaf vpn-id {
12439                          type uint32 {12178                          type uint32 {
12440                            range "1..65534" {12179                            range "1..65534" {
12441                              description12180                              description
12442                                "Ethernet VPN ID to set";12181                                "Ethernet VPN ID to set";
12443                            }12182                            }
12444                          }12183                          }
12445                          description12184                          description
12446                            "Ethernet VPN Identifier";12185                            "Ethernet VPN Identifier";
12447                        }12186                        }
12448                        leaf remote-ac-id {12187                        leaf remote-ac-id {
12449                          type uint32 {12188                          type uint32 {
12450                            range "1..4294967294" {12189                            range "1..4294967294" {
12451                              description12190                              description
12452                                "Remote ac-id";12191                                "Remote ac-id";
12453                            }12192                            }
12454                          }12193                          }
12455                          description12194                          description
12456                            "Specify remote attachment circuit identifier";12195                            "Specify remote attachment circuit identifier";
12457                        }12196                        }
12458                        leaf source {12197                        leaf source {
12459                          type uint32 {12198                          type uint32 {
12460                            range "1..4294967294" {12199                            range "1..4294967294" {
12461                              description12200                              description
12462                                "Source ac-id";12201                                "Source ac-id";
12463                            }12202                            }
12464                          }12203                          }
12465                          description12204                          description
12466                            "Specify source attachment circuit identifier";12205                            "Specify source attachment circuit identifier";
12467                        }12206                        }
12468                        container segment-routing {12207                        container segment-routing {
12469                          description12208                          description
12470                            "Configure Segment Routing VPWS Instance";12209                            "Configure Segment Routing VPWS Instance";
12471                          container srv6 {12210                          container srv6 {
12472                            presence "Indicates a srv6 node is configured.";12211                            presence "Indicates a srv6 node is configured.";
12473                            description12212                            description
12474                              "Configure SRv6 VPWS Instance";12213                              "Configure SRv6 VPWS Instance";
12475                            leaf locator {12214                            leaf locator {
12476                              type xr:Cisco-ios-xr-string {12215                              type xr:Cisco-ios-xr-string {
12477                                length "1..58" {12216                                length "1..58" {
12478                                  description12217                                  description
12479                                    "Specify locator name";12218                                    "Specify locator name";
12480                                }12219                                }
12481                                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";12220                                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
12482                              }12221                              }
12483                              description12222                              description
12484                                "PW locator to use for EVPN SID allocation";12223                                "PW locator to use for EVPN SID allocation";
12485                            }12224                            }
12486                          }12225                          }
12487                        }12226                        }
12488                      }12227                      }
12489                    }12228                    }
12490                    container segment-routing-services {12229                    container segment-routing-services {
12491                      description12230                      description
12492                        "Specify service ID (used as local and remote ac-id)";12231                        "Specify service ID (used as local and remote ac-id)";
12493                      list service {12232                      list service {
12494                        must "segment-routing/srv6";12233                        must "segment-routing/srv6";
12495                        key "vpn-id service-id";12234                        key "vpn-id service-id";
12496                        description12235                        description
12497                          "Specify service ID (used as local and remote ac-id)";12236                          "Specify service ID (used as local and remote ac-id)";
12498                        leaf vpn-id {12237                        leaf vpn-id {
12499                          type uint32 {12238                          type uint32 {
12500                            range "1..65534" {12239                            range "1..65534" {
12501                              description12240                              description
12502                                "Ethernet VPN ID to set";12241                                "Ethernet VPN ID to set";
12503                            }12242                            }
12504                          }12243                          }
12505                          description12244                          description
12506                            "Ethernet VPN Identifier";12245                            "Ethernet VPN Identifier";
12507                        }12246                        }
12508                        leaf service-id {12247                        leaf service-id {
12509                          type uint32 {12248                          type uint32 {
12510                            range "1..4294967294" {12249                            range "1..4294967294" {
12511                              description12250                              description
12512                                "Service ID";12251                                "Service ID";
12513                            }12252                            }
12514                          }12253                          }
12515                          description12254                          description
12516                            "Specify service ID (used as local and remote ac-id)";12255                            "Specify service ID (used as local and remote ac-id)";
12517                        }12256                        }
12518                        container segment-routing {12257                        container segment-routing {
12519                          description12258                          description
12520                            "Configure Segment Routing VPWS Instance";12259                            "Configure Segment Routing VPWS Instance";
12521                          container srv6 {12260                          container srv6 {
12522                            presence "Indicates a srv6 node is configured.";12261                            presence "Indicates a srv6 node is configured.";
12523                            description12262                            description
12524                              "Configure SRv6 VPWS Instance";12263                              "Configure SRv6 VPWS Instance";
12525                            leaf locator {12264                            leaf locator {
12526                              type xr:Cisco-ios-xr-string {12265                              type xr:Cisco-ios-xr-string {
12527                                length "1..58" {12266                                length "1..58" {
12528                                  description12267                                  description
12529                                    "Specify locator name";12268                                    "Specify locator name";
12530                                }12269                                }
12531                                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";12270                                pattern "[a-z0-9A-Z][a-z0-9A-Z_.:]*";
12532                              }12271                              }
12533                              description12272                              description
12534                                "PW locator to use for EVPN SID allocation";12273                                "PW locator to use for EVPN SID allocation";
12535                            }12274                            }
12536                          }12275                          }
12537                        }12276                        }
12538                      }12277                      }
12539                    }12278                    }
12540                  }12279                  }
12541                }12280                }
12542              }12281              }
12543              container monitor-sessions {12282              container monitor-sessions {
12544                description12283                description
12545                  "Specify the monitor session";12284                  "Specify the monitor session";
12546                list monitor-session {12285                list monitor-session {
12547                  key "monitor-session-name";12286                  key "monitor-session-name";
12548                  description12287                  description
12549                    "Specify the monitor session";12288                    "Specify the monitor session";
12550                  leaf monitor-session-name {12289                  leaf monitor-session-name {
12551                    type string {12290                    type string {
12552                      length "1..64" {12291                      length "1..64" {
12553                        description12292                        description
12554                          "Name of the monitor session";12293                          "Name of the monitor session";
12555                      }12294                      }
12556                    }12295                    }
12557                    description12296                    description
12558                      "Specify the monitor session";12297                      "Specify the monitor session";
12559                  }12298                  }
12560                }12299                }
12561              }12300              }
12562            }12301            }
12563          }12302          }
12564          container mp2mps {12303          container mp2mps {
12565            description12304            description
12566              "Specify the MP2MP instance name";12305              "Specify the MP2MP instance name";
12567            list mp2mp {12306            list mp2mp {
12568              key "instance-name";12307              key "instance-name";
12569              description12308              description
12570                "Specify the MP2MP instance name";12309                "Specify the MP2MP instance name";
12571              leaf instance-name {12310              leaf instance-name {
12572                type xr:Cisco-ios-xr-string {12311                type xr:Cisco-ios-xr-string {
12573                  length "1..26" {12312                  length "1..26" {
12574                    description12313                    description
12575                      "Name of the MP2MP instance";12314                      "Name of the MP2MP instance";
12576                  }12315                  }
12577                }12316                }
12578                description12317                description
12579                  "Specify the MP2MP instance name";12318                  "Specify the MP2MP instance name";
12580              }12319              }
12581              leaf vpn-id {12320              leaf vpn-id {
12582                type uint32 {12321                type uint32 {
12583                  range "1..4294967295" {12322                  range "1..4294967295" {
12584                    description12323                    description
12585                      "Value of the VPN ID";12324                      "Value of the VPN ID";
12586                  }12325                  }
12587                }12326                }
12588                description12327                description
12589                  "VPN Identifier (VPN ID)";12328                  "VPN Identifier (VPN ID)";
12590              }12329              }
12591              leaf mtu {12330              leaf mtu {
12592                type uint32 {12331                type uint32 {
12593                  range "64..65535" {12332                  range "64..65535" {
12594                    description12333                    description
12595                      "Value of the MTU";12334                      "Value of the MTU";
12596                  }12335                  }
12597                }12336                }
12598                description12337                description
12599                  "Set maximum transmission unit (payload) for this VPN MP2MP Instance";12338                  "Set maximum transmission unit (payload) for this VPN MP2MP Instance";
12600              }12339              }
12601              container shutdown {12340              container shutdown {
12602                presence "Indicates a shutdown node is configured.";12341                presence "Indicates a shutdown node is configured.";
12603                description12342                description
12604                  "shutdown the L2VPN MP2MP Instance";12343                  "shutdown the L2VPN MP2MP Instance";
12605              }12344              }
12606              leaf l2-encapsulation {12345              leaf l2-encapsulation {
12607                type enumeration {12346                type enumeration {
12608                  enum "vlan" {12347                  enum "vlan" {
12609                    value 4;12348                    value 4;
12610                    description12349                    description
12611                      "Ethernet VLAN encapsulation";12350                      "Ethernet VLAN encapsulation";
12612                  }12351                  }
12613                  enum "ethernet" {12352                  enum "ethernet" {
12614                    value 5;12353                    value 5;
12615                    description12354                    description
12616                      "Ethernet encapsulation";12355                      "Ethernet encapsulation";
12617                  }12356                  }
12618                }12357                }
12619                description12358                description
12620                  "Configure the L2 encapsulation for this L2VPN MP2MP Instance";12359                  "Configure the L2 encapsulation for this L2VPN MP2MP Instance";
12621              }12360              }
12622              leaf interworking {12361              leaf interworking {
12623                type enumeration {12362                type enumeration {
12624                  enum "ethernet" {12363                  enum "ethernet" {
12625                    value 1;12364                    value 1;
12626                    description12365                    description
12627                      "Ethernet interworking";12366                      "Ethernet interworking";
12628                  }12367                  }
12629                }12368                }
12630                description12369                description
12631                  "Configure the interworking option for this L2VPN MP2MP Instance";12370                  "Configure the interworking option for this L2VPN MP2MP Instance";
12632              }12371              }
12633              container control-word {12372              container control-word {
12634                description12373                description
12635                  "Set control-word option for this VPN MP2MP Instance";12374                  "Set control-word option for this VPN MP2MP Instance";
12636                container disable {12375                container disable {
12637                  presence "Indicates a disable node is configured.";12376                  presence "Indicates a disable node is configured.";
12638                  description12377                  description
12639                    "Disable control-word";12378                    "Disable control-word";
12640                }12379                }
12641              }12380              }
12642              container autodiscovery {12381              container autodiscovery {
12643                description12382                description
12644                  "Enable auto-discovery in this MP2MP";12383                  "Enable auto-discovery in this MP2MP";
12645                container bgp {12384                container bgp {
12646                  presence "Indicates a bgp node is configured.";12385                  presence "Indicates a bgp node is configured.";
12647                  description12386                  description
12648                    "Enable BGP auto-discovery in this MP2MP";12387                    "Enable BGP auto-discovery in this MP2MP";
12649                  container rd {12388                  container rd {
12650                    description12389                    description
12651                      "route distinguisher";12390                      "route distinguisher";
12652                    container auto {12391                    container auto {
12653                      must "not(../two-byte-as-number or ../four-byte-as-number or ../ipv4-address)";12392                      must "not(../two-byte-as-number or ../four-byte-as-number or ../ipv4-address)";
12654                      presence "Indicates a auto node is configured.";12393                      presence "Indicates a auto node is configured.";
12655                      description12394                      description
12656                        "Automatic route distinguisher";12395                        "Automatic route distinguisher";
12657                    }12396                    }
12658                    leaf two-byte-as-number {12397                    leaf two-byte-as-number {
12659                      type uint32 {12398                      type uint32 {
12660                        range "1..65535" {12399                        range "1..65535" {
12661                          description12400                          description
12662                            "Two Byte AS number";12401                            "Two Byte AS number";
12663                        }12402                        }
12664                      }12403                      }
n12665                      must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n12404                      must "not(../four-byte-as-number or ../ipv4-address)";
12666                      description12405                      description
12667                        "Two Byte AS number";12406                        "Two Byte AS number";
12668                    }12407                    }
12669                    leaf two-byte-as-assigned-number {12408                    leaf two-byte-as-assigned-number {
12670                      type uint32 {12409                      type uint32 {
12671                        range "0..4294967295" {12410                        range "0..4294967295" {
12672                          description12411                          description
12673                            "AS:nn (hex or decimal format)";12412                            "AS:nn (hex or decimal format)";
12674                        }12413                        }
12675                      }12414                      }
12676                      must "../two-byte-as-number";12415                      must "../two-byte-as-number";
12677                      description12416                      description
12678                        "AS:nn (hex or decimal format)";12417                        "AS:nn (hex or decimal format)";
12679                    }12418                    }
12680                    leaf four-byte-as-number {12419                    leaf four-byte-as-number {
12681                      type uint32 {12420                      type uint32 {
12682                        range "65536..4294967295" {12421                        range "65536..4294967295" {
12683                          description12422                          description
12684                            "Four Byte AS number";12423                            "Four Byte AS number";
12685                        }12424                        }
12686                      }12425                      }
n12687                      must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n12426                      must "not(../two-byte-as-number or ../ipv4-address)";
12688                      description12427                      description
12689                        "Four Byte AS number";12428                        "Four Byte AS number";
12690                    }12429                    }
12691                    leaf four-byte-as-assigned-number {12430                    leaf four-byte-as-assigned-number {
12692                      type uint32 {12431                      type uint32 {
12693                        range "0..65535" {12432                        range "0..65535" {
12694                          description12433                          description
12695                            "AS:nn (hex or decimal format)";12434                            "AS:nn (hex or decimal format)";
12696                        }12435                        }
12697                      }12436                      }
12698                      must "../four-byte-as-number";12437                      must "../four-byte-as-number";
12699                      description12438                      description
12700                        "AS:nn (hex or decimal format)";12439                        "AS:nn (hex or decimal format)";
12701                    }12440                    }
12702                    leaf ipv4-address {12441                    leaf ipv4-address {
12703                      type inet:ipv4-address-no-zone;12442                      type inet:ipv4-address-no-zone;
n12704                      must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";n12443                      must "not(../two-byte-as-number or ../four-byte-as-number)";
12705                      description12444                      description
12706                        "IP address";12445                        "IP address";
12707                    }12446                    }
12708                    leaf ipv4-address-assigned-number {12447                    leaf ipv4-address-assigned-number {
12709                      type uint32 {12448                      type uint32 {
12710                        range "0..65535" {12449                        range "0..65535" {
12711                          description12450                          description
12712                            "IP-address:nn (hex or decimal format)";12451                            "IP-address:nn (hex or decimal format)";
12713                        }12452                        }
12714                      }12453                      }
12715                      must "../ipv4-address";12454                      must "../ipv4-address";
12716                      description12455                      description
12717                        "IP-address:nn (hex or decimal format)";12456                        "IP-address:nn (hex or decimal format)";
12718                    }12457                    }
12719                  }12458                  }
12720                  container route-target {12459                  container route-target {
12721                    description12460                    description
12722                      "Route Target";12461                      "Route Target";
12723                    container import {12462                    container import {
12724                      description12463                      description
12725                        "Import Route Target";12464                        "Import Route Target";
12726                      container two-byte-as-rts {12465                      container two-byte-as-rts {
12727                        description12466                        description
12728                          "Two Byte AS Number Route Target";12467                          "Two Byte AS Number Route Target";
12729                        list two-byte-as-rt {12468                        list two-byte-as-rt {
12730                          key "two-byte-as-number assigned-number";12469                          key "two-byte-as-number assigned-number";
12731                          description12470                          description
12732                            "Two Byte AS Number Route Target";12471                            "Two Byte AS Number Route Target";
12733                          leaf two-byte-as-number {12472                          leaf two-byte-as-number {
12734                            type uint32 {12473                            type uint32 {
12735                              range "1..65535";12474                              range "1..65535";
12736                            }12475                            }
12737                            description12476                            description
12738                              "Two Byte AS Number";12477                              "Two Byte AS Number";
12739                          }12478                          }
12740                          leaf assigned-number {12479                          leaf assigned-number {
12741                            type uint32 {12480                            type uint32 {
12742                              range "0..4294967295" {12481                              range "0..4294967295" {
12743                                description12482                                description
12744                                  "AS:nn (hex or decimal format)";12483                                  "AS:nn (hex or decimal format)";
12745                              }12484                              }
12746                            }12485                            }
12747                            description12486                            description
12748                              "AS:nn (hex or decimal format)";12487                              "AS:nn (hex or decimal format)";
12749                          }12488                          }
12750                        }12489                        }
12751                      }12490                      }
12752                      container four-byte-as-rts {12491                      container four-byte-as-rts {
12753                        description12492                        description
12754                          "Four Byte AS number Route Target";12493                          "Four Byte AS number Route Target";
12755                        list four-byte-as-rt {12494                        list four-byte-as-rt {
12756                          key "four-byte-as-number assigned-number";12495                          key "four-byte-as-number assigned-number";
12757                          description12496                          description
12758                            "Four Byte AS number Route Target";12497                            "Four Byte AS number Route Target";
12759                          leaf four-byte-as-number {12498                          leaf four-byte-as-number {
12760                            type uint32 {12499                            type uint32 {
12761                              range "65536..4294967295";12500                              range "65536..4294967295";
12762                            }12501                            }
12763                            description12502                            description
12764                              "Four Byte AS number";12503                              "Four Byte AS number";
12765                          }12504                          }
12766                          leaf assigned-number {12505                          leaf assigned-number {
12767                            type uint32 {12506                            type uint32 {
12768                              range "0..65535" {12507                              range "0..65535" {
12769                                description12508                                description
12770                                  "AS:nn (hex or decimal format)";12509                                  "AS:nn (hex or decimal format)";
12771                              }12510                              }
12772                            }12511                            }
12773                            description12512                            description
12774                              "AS:nn (hex or decimal format)";12513                              "AS:nn (hex or decimal format)";
12775                          }12514                          }
12776                        }12515                        }
12777                      }12516                      }
12778                      container ipv4-address-rts {12517                      container ipv4-address-rts {
12779                        description12518                        description
12780                          "IP address Route Target";12519                          "IP address Route Target";
12781                        list ipv4-address-rt {12520                        list ipv4-address-rt {
12782                          key "ipv4-address assigned-number";12521                          key "ipv4-address assigned-number";
12783                          description12522                          description
12784                            "IP address";12523                            "IP address";
12785                          leaf ipv4-address {12524                          leaf ipv4-address {
12786                            type inet:ipv4-address-no-zone;12525                            type inet:ipv4-address-no-zone;
12787                            description12526                            description
12788                              "IP address";12527                              "IP address";
12789                          }12528                          }
12790                          leaf assigned-number {12529                          leaf assigned-number {
12791                            type uint32 {12530                            type uint32 {
12792                              range "0..65535" {12531                              range "0..65535" {
12793                                description12532                                description
12794                                  "IP-address:nn (hex or decimal format)";12533                                  "IP-address:nn (hex or decimal format)";
12795                              }12534                              }
12796                            }12535                            }
12797                            description12536                            description
12798                              "IP-address:nn (hex or decimal format)";12537                              "IP-address:nn (hex or decimal format)";
12799                          }12538                          }
12800                        }12539                        }
12801                      }12540                      }
12802                    }12541                    }
12803                    container export {12542                    container export {
12804                      description12543                      description
12805                        "Export Route Target";12544                        "Export Route Target";
12806                      container two-byte-as-rts {12545                      container two-byte-as-rts {
12807                        description12546                        description
12808                          "Two Byte AS Number Route Target";12547                          "Two Byte AS Number Route Target";
12809                        list two-byte-as-rt {12548                        list two-byte-as-rt {
12810                          key "two-byte-as-number assigned-number";12549                          key "two-byte-as-number assigned-number";
12811                          description12550                          description
12812                            "Two Byte AS Number Route Target";12551                            "Two Byte AS Number Route Target";
12813                          leaf two-byte-as-number {12552                          leaf two-byte-as-number {
12814                            type uint32 {12553                            type uint32 {
12815                              range "1..65535";12554                              range "1..65535";
12816                            }12555                            }
12817                            description12556                            description
12818                              "Two Byte AS Number";12557                              "Two Byte AS Number";
12819                          }12558                          }
12820                          leaf assigned-number {12559                          leaf assigned-number {
12821                            type uint32 {12560                            type uint32 {
12822                              range "0..4294967295" {12561                              range "0..4294967295" {
12823                                description12562                                description
12824                                  "AS:nn (hex or decimal format)";12563                                  "AS:nn (hex or decimal format)";
12825                              }12564                              }
12826                            }12565                            }
12827                            description12566                            description
12828                              "AS:nn (hex or decimal format)";12567                              "AS:nn (hex or decimal format)";
12829                          }12568                          }
12830                        }12569                        }
12831                      }12570                      }
12832                      container four-byte-as-rts {12571                      container four-byte-as-rts {
12833                        description12572                        description
12834                          "Four Byte AS number Route Target";12573                          "Four Byte AS number Route Target";
12835                        list four-byte-as-rt {12574                        list four-byte-as-rt {
12836                          key "four-byte-as-number assigned-number";12575                          key "four-byte-as-number assigned-number";
12837                          description12576                          description
12838                            "Four Byte AS number Route Target";12577                            "Four Byte AS number Route Target";
12839                          leaf four-byte-as-number {12578                          leaf four-byte-as-number {
12840                            type uint32 {12579                            type uint32 {
12841                              range "65536..4294967295";12580                              range "65536..4294967295";
12842                            }12581                            }
12843                            description12582                            description
12844                              "Four Byte AS number";12583                              "Four Byte AS number";
12845                          }12584                          }
12846                          leaf assigned-number {12585                          leaf assigned-number {
12847                            type uint32 {12586                            type uint32 {
12848                              range "0..65535" {12587                              range "0..65535" {
12849                                description12588                                description
12850                                  "AS:nn (hex or decimal format)";12589                                  "AS:nn (hex or decimal format)";
12851                              }12590                              }
12852                            }12591                            }
12853                            description12592                            description
12854                              "AS:nn (hex or decimal format)";12593                              "AS:nn (hex or decimal format)";
12855                          }12594                          }
12856                        }12595                        }
12857                      }12596                      }
12858                      container ipv4-address-rts {12597                      container ipv4-address-rts {
12859                        description12598                        description
12860                          "IP address Route Target";12599                          "IP address Route Target";
12861                        list ipv4-address-rt {12600                        list ipv4-address-rt {
12862                          key "ipv4-address assigned-number";12601                          key "ipv4-address assigned-number";
12863                          description12602                          description
12864                            "IP address";12603                            "IP address";
12865                          leaf ipv4-address {12604                          leaf ipv4-address {
12866                            type inet:ipv4-address-no-zone;12605                            type inet:ipv4-address-no-zone;
12867                            description12606                            description
12868                              "IP address";12607                              "IP address";
12869                          }12608                          }
12870                          leaf assigned-number {12609                          leaf assigned-number {
12871                            type uint32 {12610                            type uint32 {
12872                              range "0..65535" {12611                              range "0..65535" {
12873                                description12612                                description
12874                                  "IP-address:nn (hex or decimal format)";12613                                  "IP-address:nn (hex or decimal format)";
12875                              }12614                              }
12876                            }12615                            }
12877                            description12616                            description
12878                              "IP-address:nn (hex or decimal format)";12617                              "IP-address:nn (hex or decimal format)";
12879                          }12618                          }
12880                        }12619                        }
12881                      }12620                      }
12882                    }12621                    }
12883                    container two-byte-as-rts {12622                    container two-byte-as-rts {
12884                      description12623                      description
12885                        "Two Byte AS Number Route Target";12624                        "Two Byte AS Number Route Target";
12886                      list two-byte-as-rt {12625                      list two-byte-as-rt {
12887                        key "two-byte-as-number assigned-number";12626                        key "two-byte-as-number assigned-number";
12888                        description12627                        description
12889                          "Two Byte AS Number Route Target";12628                          "Two Byte AS Number Route Target";
12890                        leaf two-byte-as-number {12629                        leaf two-byte-as-number {
12891                          type uint32 {12630                          type uint32 {
12892                            range "1..65535";12631                            range "1..65535";
12893                          }12632                          }
12894                          description12633                          description
12895                            "Two Byte AS Number";12634                            "Two Byte AS Number";
12896                        }12635                        }
12897                        leaf assigned-number {12636                        leaf assigned-number {
12898                          type uint32 {12637                          type uint32 {
12899                            range "0..4294967295" {12638                            range "0..4294967295" {
12900                              description12639                              description
12901                                "AS:nn (hex or decimal format)";12640                                "AS:nn (hex or decimal format)";
12902                            }12641                            }
12903                          }12642                          }
12904                          description12643                          description
12905                            "AS:nn (hex or decimal format)";12644                            "AS:nn (hex or decimal format)";
12906                        }12645                        }
12907                      }12646                      }
12908                    }12647                    }
12909                    container four-byte-as-rts {12648                    container four-byte-as-rts {
12910                      description12649                      description
12911                        "Four Byte AS number Route Target";12650                        "Four Byte AS number Route Target";
12912                      list four-byte-as-rt {12651                      list four-byte-as-rt {
12913                        key "four-byte-as-number assigned-number";12652                        key "four-byte-as-number assigned-number";
12914                        description12653                        description
12915                          "Four Byte AS number Route Target";12654                          "Four Byte AS number Route Target";
12916                        leaf four-byte-as-number {12655                        leaf four-byte-as-number {
12917                          type uint32 {12656                          type uint32 {
12918                            range "65536..4294967295";12657                            range "65536..4294967295";
12919                          }12658                          }
12920                          description12659                          description
12921                            "Four Byte AS number";12660                            "Four Byte AS number";
12922                        }12661                        }
12923                        leaf assigned-number {12662                        leaf assigned-number {
12924                          type uint32 {12663                          type uint32 {
12925                            range "0..65535" {12664                            range "0..65535" {
12926                              description12665                              description
12927                                "AS:nn (hex or decimal format)";12666                                "AS:nn (hex or decimal format)";
12928                            }12667                            }
12929                          }12668                          }
12930                          description12669                          description
12931                            "AS:nn (hex or decimal format)";12670                            "AS:nn (hex or decimal format)";
12932                        }12671                        }
12933                      }12672                      }
12934                    }12673                    }
12935                    container ipv4-address-rts {12674                    container ipv4-address-rts {
12936                      description12675                      description
12937                        "IP address Route Target";12676                        "IP address Route Target";
12938                      list ipv4-address-rt {12677                      list ipv4-address-rt {
12939                        key "ipv4-address assigned-number";12678                        key "ipv4-address assigned-number";
12940                        description12679                        description
12941                          "IP address";12680                          "IP address";
12942                        leaf ipv4-address {12681                        leaf ipv4-address {
12943                          type inet:ipv4-address-no-zone;12682                          type inet:ipv4-address-no-zone;
12944                          description12683                          description
12945                            "IP address";12684                            "IP address";
12946                        }12685                        }
12947                        leaf assigned-number {12686                        leaf assigned-number {
12948                          type uint32 {12687                          type uint32 {
12949                            range "0..65535" {12688                            range "0..65535" {
12950                              description12689                              description
12951                                "IP-address:nn (hex or decimal format)";12690                                "IP-address:nn (hex or decimal format)";
12952                            }12691                            }
12953                          }12692                          }
12954                          description12693                          description
12955                            "IP-address:nn (hex or decimal format)";12694                            "IP-address:nn (hex or decimal format)";
12956                        }12695                        }
12957                      }12696                      }
12958                    }12697                    }
12959                  }12698                  }
12960                  container signaling-protocol {12699                  container signaling-protocol {
12961                    description12700                    description
12962                      "Enable signaling protocol in this MP2MP";12701                      "Enable signaling protocol in this MP2MP";
12963                    container bgp {12702                    container bgp {
12964                      presence "Indicates a bgp node is configured.";12703                      presence "Indicates a bgp node is configured.";
12965                      description12704                      description
12966                        "Enable BGP signaling protocol this MP2MP";12705                        "Enable BGP signaling protocol this MP2MP";
12967                      list ce-id {12706                      list ce-id {
12968                        key "local-ce-id-value";12707                        key "local-ce-id-value";
12969                        description12708                        description
12970                          "Local Customer Edge Identifier (CE ID)";12709                          "Local Customer Edge Identifier (CE ID)";
12971                        leaf local-ce-id-value {12710                        leaf local-ce-id-value {
12972                          type uint32 {12711                          type uint32 {
12973                            range "1..16384" {12712                            range "1..16384" {
12974                              description12713                              description
12975                                "Value of the local CE ID";12714                                "Value of the local CE ID";
12976                            }12715                            }
12977                          }12716                          }
12978                          description12717                          description
12979                            "Local Customer Edge Identifier (CE ID)";12718                            "Local Customer Edge Identifier (CE ID)";
12980                        }12719                        }
12981                        list interface {12720                        list interface {
12982                          must "remote-ce-id";12721                          must "remote-ce-id";
12983                          key "interface-name";12722                          key "interface-name";
12984                          description12723                          description
12985                            "Specify the attachment circuit";12724                            "Specify the attachment circuit";
12986                          leaf interface-name {12725                          leaf interface-name {
12987                            type xr:Interface-name;12726                            type xr:Interface-name;
12988                            description12727                            description
12989                              "Specify the attachment circuit";12728                              "Specify the attachment circuit";
12990                          }12729                          }
12991                          list remote-ce-id {12730                          list remote-ce-id {
12992                            key "remote-ce-id-value";12731                            key "remote-ce-id-value";
12993                            description12732                            description
12994                              "Remote Customer Edge Identifier";12733                              "Remote Customer Edge Identifier";
12995                            leaf remote-ce-id-value {12734                            leaf remote-ce-id-value {
12996                              type uint32 {12735                              type uint32 {
12997                                range "1..16384" {12736                                range "1..16384" {
12998                                  description12737                                  description
12999                                    "Value of the remote CE ID";12738                                    "Value of the remote CE ID";
13000                                }12739                                }
13001                              }12740                              }
13002                              description12741                              description
13003                                "Remote Customer Edge Identifier";12742                                "Remote Customer Edge Identifier";
13004                            }12743                            }
13005                          }12744                          }
13006                        }12745                        }
13007                        container vpws-seamless-integration {12746                        container vpws-seamless-integration {
13008                          presence "Indicates a vpws-seamless-integration node is configured.";12747                          presence "Indicates a vpws-seamless-integration node is configured.";
13009                          description12748                          description
13010                            "EVPN-VPWS Seamless Integration with BGP-AD VPWS";12749                            "EVPN-VPWS Seamless Integration with BGP-AD VPWS";
13011                        }12750                        }
13012                      }12751                      }
13013                      leaf ce-range {12752                      leaf ce-range {
13014                        if-feature "l2vpn_is_cli_supported";12753                        if-feature "l2vpn_is_cli_supported";
13015                        type uint32 {12754                        type uint32 {
13016                          range "11..100" {12755                          range "11..100" {
13017                            description12756                            description
13018                              "Value of the CE Range";12757                              "Value of the CE Range";
13019                          }12758                          }
13020                        }12759                        }
13021                        description12760                        description
13022                          "Local Customer Edge Block Configurable Range";12761                          "Local Customer Edge Block Configurable Range";
13023                      }12762                      }
13024                      container load-balancing {12763                      container load-balancing {
13025                        description12764                        description
13026                          "Load Balancing";12765                          "Load Balancing";
13027                        container flow-label {12766                        container flow-label {
13028                          description12767                          description
13029                            "Flow label based load balancing setting";12768                            "Flow label based load balancing setting";
13030                          container transmit {12769                          container transmit {
13031                            must "not(../receive or ../both)";12770                            must "not(../receive or ../both)";
13032                            presence "Indicates a transmit node is configured.";12771                            presence "Indicates a transmit node is configured.";
13033                            description12772                            description
13034                              "Insert Flow label when transmit ";12773                              "Insert Flow label when transmit ";
13035                          }12774                          }
13036                          container receive {12775                          container receive {
13037                            must "not(../transmit or ../both)";12776                            must "not(../transmit or ../both)";
13038                            presence "Indicates a receive node is configured.";12777                            presence "Indicates a receive node is configured.";
13039                            description12778                            description
13040                              "Discard Flow label when receive";12779                              "Discard Flow label when receive";
13041                          }12780                          }
13042                          container both {12781                          container both {
13043                            must "not(../transmit or ../receive)";12782                            must "not(../transmit or ../receive)";
13044                            presence "Indicates a both node is configured.";12783                            presence "Indicates a both node is configured.";
13045                            description12784                            description
13046                              "Insert/Discard Flow label when transmit/recceive";12785                              "Insert/Discard Flow label when transmit/recceive";
13047                          }12786                          }
13048                        }12787                        }
13049                      }12788                      }
13050                    }12789                    }
13051                  }12790                  }
13052                  container route-policy {12791                  container route-policy {
13053                    description12792                    description
13054                      "Apply route policy";12793                      "Apply route policy";
13055                    leaf export {12794                    leaf export {
13056                      type xr:Route-policy-name;12795                      type xr:Route-policy-name;
13057                      description12796                      description
13058                        "Export route policy";12797                        "Export route policy";
13059                    }12798                    }
13060                  }12799                  }
13061                }12800                }
13062              }12801              }
13063            }12802            }
13064          }12803          }
13065        }12804        }
13066      }12805      }
13067    }12806    }
13068    container logging {12807    container logging {
13069      description12808      description
13070        "Configure l2vpn logging commands";12809        "Configure l2vpn logging commands";
13071      container pseudowire {12810      container pseudowire {
13072        presence "Indicates a pseudowire node is configured.";12811        presence "Indicates a pseudowire node is configured.";
13073        description12812        description
13074          "Enable pseudowire logging";12813          "Enable pseudowire logging";
13075      }12814      }
13076      container bridge-domain {12815      container bridge-domain {
13077        presence "Indicates a bridge-domain node is configured.";12816        presence "Indicates a bridge-domain node is configured.";
13078        description12817        description
13079          "Enable bridge-domain logging";12818          "Enable bridge-domain logging";
13080      }12819      }
13081      container vfi {12820      container vfi {
13082        presence "Indicates a vfi node is configured.";12821        presence "Indicates a vfi node is configured.";
13083        description12822        description
13084          "Enable VFI logging";12823          "Enable VFI logging";
13085      }12824      }
13086      container nsr {12825      container nsr {
13087        presence "Indicates a nsr node is configured.";12826        presence "Indicates a nsr node is configured.";
13088        description12827        description
13089          "Enable Non-Stop Routing logging";12828          "Enable Non-Stop Routing logging";
13090      }12829      }
13091      container pwhe-replication {12830      container pwhe-replication {
13092        description12831        description
13093          "PWHE replication failure/success logging";12832          "PWHE replication failure/success logging";
13094        container disable {12833        container disable {
13095          presence "Indicates a disable node is configured.";12834          presence "Indicates a disable node is configured.";
13096          description12835          description
13097            "disable PWHE replication failure/success logging";12836            "disable PWHE replication failure/success logging";
13098        }12837        }
13099      }12838      }
13100    }12839    }
13101    container autodiscovery {12840    container autodiscovery {
13102      description12841      description
13103        "Configure global auto-discovery attributes";12842        "Configure global auto-discovery attributes";
13104      container bgp {12843      container bgp {
13105        description12844        description
13106          "auto discovery type bgp";12845          "auto discovery type bgp";
13107        container signaling-protocol {12846        container signaling-protocol {
13108          description12847          description
13109            "Configure global signaling protocol attributes";12848            "Configure global signaling protocol attributes";
13110          container bgp {12849          container bgp {
13111            description12850            description
13112              "signaling protocol type bgp";12851              "signaling protocol type bgp";
13113            container mtu {12852            container mtu {
13114              description12853              description
13115                "mtu";12854                "mtu";
13116              container mismatch {12855              container mismatch {
13117                description12856                description
13118                  "mtu mismatch";12857                  "mtu mismatch";
13119                container ignore {12858                container ignore {
13120                  presence "Indicates a ignore node is configured.";12859                  presence "Indicates a ignore node is configured.";
13121                  description12860                  description
13122                    "Ignore MTU mismatch for auto-discovered PWs";12861                    "Ignore MTU mismatch for auto-discovered PWs";
13123                }12862                }
13124              }12863              }
13125            }12864            }
13126          }12865          }
13127        }12866        }
13128      }12867      }
13129    }12868    }
13130    container pw-routing {12869    container pw-routing {
13131      description12870      description
13132        "Configure Pseudowire routing attributes";12871        "Configure Pseudowire routing attributes";
13133      leaf global-id {12872      leaf global-id {
13134        type uint32 {12873        type uint32 {
13135          range "1..4294967295" {12874          range "1..4294967295" {
13136            description12875            description
13137              "Global ID";12876              "Global ID";
13138          }12877          }
13139        }12878        }
13140        description12879        description
13141          "Configure l2vpn pseudowire routing global id";12880          "Configure l2vpn pseudowire routing global id";
13142      }12881      }
13143      container bgp {12882      container bgp {
13144        presence "Indicates a bgp node is configured.";12883        presence "Indicates a bgp node is configured.";
13145        description12884        description
13146          "Configure BGP";12885          "Configure BGP";
13147        container rd {12886        container rd {
13148          description12887          description
13149            "Set the Route Distinguisher";12888            "Set the Route Distinguisher";
13150          leaf two-byte-as-number {12889          leaf two-byte-as-number {
13151            type uint32 {12890            type uint32 {
13152              range "1..65535" {12891              range "1..65535" {
13153                description12892                description
13154                  "Two Byte AS Number";12893                  "Two Byte AS Number";
13155              }12894              }
13156            }12895            }
n13157            must "not(../four-byte-as-number or ../ipv4-address) and ../two-byte-as-assigned-number";n12896            must "not(../four-byte-as-number or ../ipv4-address)";
13158            description12897            description
13159              "Two Byte AS Number";12898              "Two Byte AS Number";
13160          }12899          }
13161          leaf two-byte-as-assigned-number {12900          leaf two-byte-as-assigned-number {
13162            type uint32 {12901            type uint32 {
13163              range "0..4294967295" {12902              range "0..4294967295" {
13164                description12903                description
13165                  "AS:nn (hex or decimal format)";12904                  "AS:nn (hex or decimal format)";
13166              }12905              }
13167            }12906            }
13168            must "../two-byte-as-number";12907            must "../two-byte-as-number";
13169            description12908            description
13170              "AS:nn (hex or decimal format)";12909              "AS:nn (hex or decimal format)";
13171          }12910          }
13172          leaf four-byte-as-number {12911          leaf four-byte-as-number {
13173            type uint32 {12912            type uint32 {
13174              range "65536..4294967295" {12913              range "65536..4294967295" {
13175                description12914                description
13176                  "Four Byte AS number";12915                  "Four Byte AS number";
13177              }12916              }
13178            }12917            }
n13179            must "not(../two-byte-as-number or ../ipv4-address) and ../four-byte-as-assigned-number";n12918            must "not(../two-byte-as-number or ../ipv4-address)";
13180            description12919            description
13181              "Four Byte AS number";12920              "Four Byte AS number";
13182          }12921          }
13183          leaf four-byte-as-assigned-number {12922          leaf four-byte-as-assigned-number {
13184            type uint32 {12923            type uint32 {
13185              range "0..65535" {12924              range "0..65535" {
13186                description12925                description
13187                  "AS:nn (hex or decimal format)";12926                  "AS:nn (hex or decimal format)";
13188              }12927              }
13189            }12928            }
13190            must "../four-byte-as-number";12929            must "../four-byte-as-number";
13191            description12930            description
13192              "AS:nn (hex or decimal format)";12931              "AS:nn (hex or decimal format)";
13193          }12932          }
13194          leaf ipv4-address {12933          leaf ipv4-address {
13195            type inet:ipv4-address-no-zone;12934            type inet:ipv4-address-no-zone;
t13196            must "not(../two-byte-as-number or ../four-byte-as-number) and ../ipv4-address-assigned-number";t12935            must "not(../two-byte-as-number or ../four-byte-as-number)";
13197            description12936            description
13198              "IP address";12937              "IP address";
13199          }12938          }
13200          leaf ipv4-address-assigned-number {12939          leaf ipv4-address-assigned-number {
13201            type uint32 {12940            type uint32 {
13202              range "0..65535" {12941              range "0..65535" {
13203                description12942                description
13204                  "IP-address:nn (hex or decimal format)";12943                  "IP-address:nn (hex or decimal format)";
13205              }12944              }
13206            }12945            }
13207            must "../ipv4-address";12946            must "../ipv4-address";
13208            description12947            description
13209              "IP-address:nn (hex or decimal format)";12948              "IP-address:nn (hex or decimal format)";
13210          }12949          }
13211        }12950        }
13212      }12951      }
13213    }12952    }
13214    container snmp {12953    container snmp {
13215      description12954      description
13216        "Set SNMP related configuration";12955        "Set SNMP related configuration";
13217      container mib {12956      container mib {
13218        description12957        description
13219          "Set MIB related configuration";12958          "Set MIB related configuration";
13220        container interface {12959        container interface {
13221          description12960          description
13222            "Set MIB interface related configuration";12961            "Set MIB interface related configuration";
13223          container format {12962          container format {
13224            description12963            description
13225              "Set MIB interface name output format";12964              "Set MIB interface name output format";
13226            container external {12965            container external {
13227              presence "Indicates a external node is configured.";12966              presence "Indicates a external node is configured.";
13228              description12967              description
13229                "Set MIB interface name output format to external using slash";12968                "Set MIB interface name output format to external using slash";
13230            }12969            }
13231          }12970          }
13232        }12971        }
13233        container pseudowire {12972        container pseudowire {
13234          description12973          description
13235            "Set MIB pseudowire related configuration";12974            "Set MIB pseudowire related configuration";
13236          container statistics {12975          container statistics {
13237            presence "Indicates a statistics node is configured.";12976            presence "Indicates a statistics node is configured.";
13238            description12977            description
13239              "Enable MIB pseudowire statistics (for low scale, <16K PWs)";12978              "Enable MIB pseudowire statistics (for low scale, <16K PWs)";
13240          }12979          }
13241        }12980        }
13242      }12981      }
13243    }12982    }
13244  }12983  }
13245}12984}
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op